diff options
| author | grunfink <grunfink@comam.es> | 2026-08-30 07:43:18 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-08-30 07:43:18 +0200 |
| commit | 748b578c96bb5d6c3b372d533bc374e2fb918348 (patch) | |
| tree | 2f028c9c46a722eee07a54624a14d6d96163dadc /activitypub.c | |
| parent | f6f18197c72a38bf2e5de092873d46af7c8e04b7 (diff) | |
Fixed EmojiReact code to allow any emoticon in emojis.json, not only those with colon-wrapped ids.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index df319f0..bb6de13 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1607,7 +1607,7 @@ xs_dict *msg_emoji_init(snac *snac, const char *mid, const char *eid_o) { xs_dict *n_msg = msg_admiration(snac, mid, "EmojiReact"); - xs *eid = xs_strip_chars_i(xs_dup(eid_o), ":"); + xs *eid = xs_dup(eid_o); xs *content = NULL; xs *tag = xs_list_new(); xs *dict = xs_dict_new(); @@ -1623,14 +1623,14 @@ xs_dict *msg_emoji_init(snac *snac, const char *mid, const char *eid_o) content = xs_dup(eid); else if (*eid == '%') { - content = xs_url_dec_emoji(xs_dup(eid)); + content = xs_url_dec_emoji(eid); if (content == NULL) { xs_free(n_msg); return NULL; } } else { - content = xs_fmt(":%s:", eid); + content = xs_dup(eid); const char *emo = xs_dict_get(emjs, content); if (emo == NULL) { |