diff options
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | data.c | 2 | ||||
| -rw-r--r-- | html.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index 19f0cc6..d19a428 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1643,7 +1643,7 @@ xs_dict *msg_emoji_init(snac *snac, const char *mid, const char *eid) | |||
| 1643 | 1643 | ||
| 1644 | n_msg = xs_dict_set(n_msg, "content", content); | 1644 | n_msg = xs_dict_set(n_msg, "content", content); |
| 1645 | n_msg = xs_dict_set(n_msg, "accounts", accounts); | 1645 | n_msg = xs_dict_set(n_msg, "accounts", accounts); |
| 1646 | n_msg = xs_dict_set(n_msg, "attributedTo", xs_list_get(xs_dup(xs_dict_get(n_msg, "to")), 1)); | 1646 | n_msg = xs_dict_set(n_msg, "attributedTo", xs_list_get(xs_dict_get(n_msg, "to"), 1)); |
| 1647 | n_msg = xs_dict_set(n_msg, "accountId", snac->uid); | 1647 | n_msg = xs_dict_set(n_msg, "accountId", snac->uid); |
| 1648 | n_msg = xs_dict_set(n_msg, "tag", tag); | 1648 | n_msg = xs_dict_set(n_msg, "tag", tag); |
| 1649 | 1649 | ||
| @@ -1599,7 +1599,7 @@ int timeline_admire(snac *snac, const char *id, | |||
| 1599 | /* use utf <3 as a like, as it is ugly */ | 1599 | /* use utf <3 as a like, as it is ugly */ |
| 1600 | if (type && xs_match(type, "Like|EmojiReact|Emoji") && | 1600 | if (type && xs_match(type, "Like|EmojiReact|Emoji") && |
| 1601 | content && strcmp(content, "❤") != 0) { | 1601 | content && strcmp(content, "❤") != 0) { |
| 1602 | ret = timeline_emoji_react(xs_dup(snac->actor), id, xs_dup(msg)); | 1602 | ret = timeline_emoji_react(snac->actor, id, xs_dup(msg)); |
| 1603 | snac_debug(snac, 1, xs_fmt("timeline_emoji_react %s", id)); | 1603 | snac_debug(snac, 1, xs_fmt("timeline_emoji_react %s", id)); |
| 1604 | } | 1604 | } |
| 1605 | 1605 | ||
| @@ -5173,9 +5173,9 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 5173 | } | 5173 | } |
| 5174 | else | 5174 | else |
| 5175 | if (strcmp(action, L("EmojiReact")) == 0) { /** **/ | 5175 | if (strcmp(action, L("EmojiReact")) == 0) { /** **/ |
| 5176 | const char *eid = xs_dict_get(p_vars, "eid"); | 5176 | xs *eid = xs_dup(xs_dict_get(p_vars, "eid")); |
| 5177 | 5177 | ||
| 5178 | eid = xs_strip_chars_i(xs_dup(eid), ":"); | 5178 | eid = xs_strip_chars_i(eid, ":"); |
| 5179 | 5179 | ||
| 5180 | const xs_dict *ret = msg_emoji_init(&snac, id, eid); | 5180 | const xs_dict *ret = msg_emoji_init(&snac, id, eid); |
| 5181 | /* fails if either invalid or already reacted */ | 5181 | /* fails if either invalid or already reacted */ |