mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Show + federate emojis in accounts (#837)
* Start adding account emoji * get emojis serialized + deserialized nicely * update tests * set / retrieve emojis on accounts * show account emojis in web view * fetch emojis from db based on ids * fix typo in test * lint * fix pg migration * update tests * update emoji checking logic * update comment * clarify comments + add some spacing * tidy up loops a lil (thanks kim)
This commit is contained in:
@ -88,6 +88,13 @@ func (c *converter) ASRepresentationToAccount(ctx context.Context, accountable a
|
||||
acct.DisplayName = displayName
|
||||
}
|
||||
|
||||
// account emojis (used in bio, display name, fields)
|
||||
if emojis, err := ap.ExtractEmojis(accountable); err != nil {
|
||||
log.Infof("ASRepresentationToAccount: error extracting account emojis: %s", err)
|
||||
} else {
|
||||
acct.Emojis = emojis
|
||||
}
|
||||
|
||||
// TODO: fields aka attachment array
|
||||
|
||||
// note aka summary
|
||||
|
Reference in New Issue
Block a user