[feat] Allow setting custom emoji as icon for emoji pack #419
Labels
No labels
a11y
Bug
Bug fix
cannot reproduce
CSS
Documentation
enhancement
Feature
Feature request
Held for next release cycle
Minor change
needs change/feedback
performance
priority: critical
priority: high
priority: low
priority: medium
priority: patch welcome
regression
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma-fe#419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
Akkoma should allow setting the emoji which represents an icon pack in akkoma-fe. This could be represented in the pack.json as follows:
Then when browsing "an emoji pack" in akko-fe, the thumbnail of "my emoji pack" should be
special.pnginstead ofimage.jpgThe reasoning
It's often hard to figure out what 'tab' represents an emoji pack if you have lots of them. The names aren't listed in akko-fe (until hover), and they are identified only by their icon which is identified by the first emoji, sorted by shortcode. For example, on nyan.network I have a pack called 'Nyan Network'. I want this pack identified by the emoji
:nyan_network:, but 'n' is unfortunately a bit far down the alphabet, so other emojis show up first.There was a discussion on IRC about this and the consensus was that a feature request should be opened.
Have you searched for this feature request?
not sure if akko changes are required as well. I quickly looked at the source and couldn't see any validation done to pack.json, so this might be possible without any backend changes.
The thing is:
Mastodon emoji listing API does not contain the pack.json data and there’s no good place to add any global metadata since it’s a top-level list of emoji.
*oma API can (a) list pack names and (b) return the
pack.jsondata for a given pack, but the latter only includes file paths relative to the pack.json file, not image URLs for the emoji, thus it’s not suitable for use in the frontendSo while in theory, with ugly and costly reprocessing of the initial emoji list and a bunch of extra queries to get all
pack.jsondata it could be done frontend-side now, a sane implementation necessitates a new API.