elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.52k stars 567 forks source link

Elk can't access other collecions other than the first uploaded one. #3057

Open FoundOne opened 4 days ago

FoundOne commented 4 days ago

You can access only the first collection of emoji on Gotosocial.

How to reproduce.

  1. Open an account on some Gotosocial instance.
  2. Search for a custom emoji. You can obviously notice that some of them are missing and if you are an admin, you can notice that it's just the first uploaded collection.
  3. Check with Tusky and see that all custom emojis are there.
FoundOne commented 1 day ago

I found what's the issue. It has to do something with the cache, because it fixes itself on his own. Still that should not behave like that.

shuuji3 commented 1 day ago

You can find the local cache of custom emojis in the browser's local storage with elk-custom-emojis. The stored cache is updated every 24 hours probably in order to avoid too many requests against servers. Maybe clearing them can solve the current issue.

However, if there has been no change in custom emojis recently, I also feel that behavior has something wrong.

The actual fetch of custom emojis happens here:

https://github.com/elk-zone/elk/blob/55037f04cda5c9b5fbbc491464dedece73d65386/composables/emojis.ts#L23

this is a method call of masto.js client. Maybe Gotosocial returns a different set of custom emojis than Mastodon here.