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

Redownload custom emoji when reloading profile #17862

Open
koyuawsmbrtn opened this issue Mar 24, 2022 · 3 comments
Open

Redownload custom emoji when reloading profile #17862

koyuawsmbrtn opened this issue Mar 24, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@koyuawsmbrtn
Copy link
Contributor

koyuawsmbrtn commented Mar 24, 2022

Steps to reproduce the problem

  1. Open a profile in the moderation panel
  2. Click "Reload profile"

Expected behaviour

Custom emojis should also be reloaded

Actual behaviour

Custom emojis in profiles are still either not found or not being displayed at all

Specifications

Browser: Chrome 99.0.4844.82
OS: Windows 11 x64
Mastodon release: glitch-soc+koyuspace, latest main
Fork specific bug? No

@koyuawsmbrtn koyuawsmbrtn added the bug Something isn't working label Mar 24, 2022
@keskival
Copy link

keskival commented Dec 28, 2022

I second this. Having restored a backup without the system/cache directory, all the emoji references were broken.

This can be partially fixed by running:

tootctl cache clear
tootctl media remove
tootctl emoji purge --remote-only
tootctl accounts refresh --all
tootctl search deploy

After this, all the emojis and external attachments which weren't in the backup are removed, and refreshed when they are loaded again, except the emojis people use for example in their profile names, and I believe emojis they use in their profile descriptions and profile boxes as well.

Expected behavior would be that Mastodon would redownload these emojis as well when the accounts are refreshed, or at the very least when these profiles are rendered for the browsers. This problem is very painful because these emojis would refresh if anyone in the target instance would use them in posts, but people are often inhabiting single-user servers and they use emojis in their user names they never would use in posts, like the zillion variations of "verified" badges.

Edit: Actually, refreshing the profile from the admin interface does actually redownload the emojis, even if tootctl accounts refresh --all did not.

@lexi-the-cute
Copy link

lexi-the-cute commented Jan 28, 2023

I'm currently trying to fix broken media in toots and broken emojis in display names. I've been unsuccessful on fixing either.

It turns out that my server knows about some of the broken emojis, it just absolutely refuses to use them in the display name

@lexi-the-cute
Copy link

lexi-the-cute commented Jan 29, 2023

So far, the only thing I've been able to do to get the emojis to refresh is to delete the account from the accounts table directly. Problem is, this resets whatever friendships existed and so it not ideal.

I suspect when emojis are combined in the display name, they don't load. :emojione::emojitwo: for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants