this post was submitted on 22 Dec 2025
54 points (100.0% liked)

PieFed API & mobile app dev

160 readers
17 users here now

Announcements and discussions about the PieFed API - changes, improvements and general co-ordination between the frontend developers and the core of PieFed.

founded 5 months ago
MODERATORS
 

PieFed v1.4 (to be released very soon) will have emoji reactions on posts and comments. An emoji reaction can be a unicode character like 😍 or a colon-delineated string like :piefed: which gets automatically converted into an image when the post/comment is displayed.

Setting a reaction uses the same API endpoint as casting a vote (and behind the scenes reactions are federated as Likes, for Lemmy compatibility) but with an emoji element added to the JSON payload.

image

Also when looking at a post or comment in the API there is an emoji_reactions element that can be used to get a summary of the reactions that have happened so far. Compare https://crust.piefed.social/api/alpha/comment?id=456791 with https://crust.piefed.social/post/84566#comment_456791 to see what I mean.

Do a GET on /api/v3/site to retrieve a list of all the custom emoji (the ones with :something:) that this instance knows about and to find what images to convert usages of them in emoji_reactions to.

you are viewing a single comment's thread
view the rest of the comments
[–] silverpill@mitra.social 2 points 1 day ago (2 children)

@rimu I sent two reactions, one unicode and one with a custom emoji. The unicode one worked as expected, but the second one with :catjam: is not rendered properly. Also it seems to have replaced the unicode reaction.

[–] wjs018@crust.piefed.social 2 points 1 day ago (1 children)

Interesting. It shows up, but just as the shortcode:

emoji reactions

@rimu@piefed.social - not sure what the json looks like coming from mitra, but at least in the short term it might make sense to just have piefed interpret emoji it doesn't understand as an upvote (like it had been doing up to now) so that it doesn't break the UI like this.

[–] cabbage@piefed.social 1 points 21 hours ago* (last edited 19 hours ago)

Also adding :catjam: might be a good ideaβ€”it seems to be the ruling emoji of the fediverse.

Edit: I might have just missed it on account of the disco theme.

[–] INeedMana@piefed.zip 1 points 1 day ago

I think there can be only one reaction. I added one, clicked another, and the previous one disappeared. After adding it back the second one's number dropped