commit 1542a1a
default
·
2024-07-30 16:34:40 +0000 UTC
parent f8fa716
Treat 'EmojiReact' as a 'Like'. These messages will have special treatment eventually.
1 files changed,
+2,
-2
+2,
-2
1@@ -2014,12 +2014,12 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
2 }
3 }
4 else
5- if (strcmp(type, "Like") == 0) { /** **/
6+ if (strcmp(type, "Like") == 0 || strcmp(type, "EmojiReact") == 0) { /** **/
7 if (xs_type(object) == XSTYPE_DICT)
8 object = xs_dict_get(object, "id");
9
10 if (timeline_admire(snac, object, actor, 1) == HTTP_STATUS_CREATED)
11- snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object));
12+ snac_log(snac, xs_fmt("new '%s' %s %s", type, actor, object));
13 else
14 snac_log(snac, xs_fmt("repeated 'Like' from %s to %s", actor, object));
15