mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Allow processing null ID emojis (#3702)
* [bugfix] Allow processing null ID emojis * document emojis * blah * typo * array thingy
This commit is contained in:
@@ -149,7 +149,7 @@ func (c *Converter) ASRepresentationToAccount(
|
||||
}
|
||||
|
||||
// account emojis (used in bio, display name, fields)
|
||||
acct.Emojis, err = ap.ExtractEmojis(accountable)
|
||||
acct.Emojis, err = ap.ExtractEmojis(accountable, acct.Domain)
|
||||
if err != nil {
|
||||
log.Warnf(ctx, "error(s) extracting account emojis for %s: %v", uri, err)
|
||||
}
|
||||
@@ -325,7 +325,7 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
|
||||
// status.Emojis
|
||||
//
|
||||
// Custom emojis for later dereferencing.
|
||||
if emojis, err := ap.ExtractEmojis(statusable); err != nil {
|
||||
if emojis, err := ap.ExtractEmojis(statusable, uriObj.Host); err != nil {
|
||||
log.Warnf(ctx, "error extracting emojis for %s: %v", uri, err)
|
||||
} else {
|
||||
status.Emojis = emojis
|
||||
|
Reference in New Issue
Block a user