[Feature] [API] expose emoji convertion #5369

Closed
opened 2025-11-02 06:22:48 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @6543 on GitHub (May 9, 2020).

#11032 added UTF-8 emoji support - add api to fully use this in clients

proposal: for miscellaneous

add POST /emoji/utf to convert an alias to utf
and POST /emoji/alias to get (first alias or alias list?)

idears and thoughts are welcome :)

Originally created by @6543 on GitHub (May 9, 2020). #11032 added UTF-8 emoji support - add api to fully use this in clients proposal: for **miscellaneous** add `POST /emoji/utf` to convert an alias to utf and `POST /emoji/alias` to get (first alias or alias list?) idears and thoughts are welcome :)
Author
Owner
@6543 commented on GitHub (May 9, 2020): modules/emoji/emoji.go has: https://github.com/go-gitea/gitea/blob/b09ec508c3f33e05d3784f96093451c463600d7b/modules/emoji/emoji.go#L77-L79 https://github.com/go-gitea/gitea/blob/b09ec508c3f33e05d3784f96093451c463600d7b/modules/emoji/emoji.go#L89-L92 https://github.com/go-gitea/gitea/blob/b09ec508c3f33e05d3784f96093451c463600d7b/modules/emoji/emoji.go#L106-L109 https://github.com/go-gitea/gitea/blob/b09ec508c3f33e05d3784f96093451c463600d7b/modules/emoji/emoji.go#L114-L116
Author
Owner

@silverwind commented on GitHub (May 9, 2020):

Can't clients just use a existing client-side library that does this conversation (which is mostly the same across libraries)?

@silverwind commented on GitHub (May 9, 2020): Can't clients just use a existing client-side library that does this conversation (which is mostly the same across libraries)?
Author
Owner

@septatrix commented on GitHub (May 14, 2020):

Can't clients just use a existing client-side library that does this conversation (which is mostly the same across libraries)?

Yes I agree, AFAIK we use the aliases from the github gemoji gem or more specifialy the aliases from the included json file https://github.com/github/gemoji/blob/master/db/emoji.json. Using the JSON file to get the corresponding data is easy in most languages and should not require an extra API endpoint.

@septatrix commented on GitHub (May 14, 2020): > Can't clients just use a existing client-side library that does this conversation (which is mostly the same across libraries)? Yes I agree, AFAIK we use the aliases from the github gemoji gem or more specifialy the aliases from the included json file https://github.com/github/gemoji/blob/master/db/emoji.json. Using the JSON file to get the corresponding data is easy in most languages and should not require an extra API endpoint.
Author
Owner

@6543 commented on GitHub (May 15, 2020):

closed because clients can handle it itself ...

@6543 commented on GitHub (May 15, 2020): closed because clients can handle it itself ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5369