Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Show + federate emojis in accounts #837

Merged
merged 21 commits into from Sep 26, 2022
Merged

Conversation

tsmethurst
Copy link
Contributor

This PR adds logic for federating account emojis in/out, updating local accounts with emojis via the client API, and rendering emojis in display names + bios via the web ui.

To make this work, there are a few database changes:

  • new field emojis on accounts, which is a slice of emoji IDs
  • new database table account_to_emojis which is used for m2m relationships between an account and its emojis

These new things necessitate a db migration.

This only works for accounts that either haven't been seen by the instance yet, or which have sent an Update activity to the instance, so not all accounts will magically start showing emojis -- just new/updated ones when they change their bios or whatever.

partially addresses #830

@tsmethurst tsmethurst merged commit c4a0829 into main Sep 26, 2022
@tsmethurst tsmethurst deleted the emojis_in_accounts branch September 26, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant