diff options
author | default <nobody@localhost> | 2024-07-30 18:34:40 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-07-30 18:34:40 +0200 |
commit | 1542a1a0a68919c0fa691783f681fc655705fd4a (patch) | |
tree | d816926224160d10a80987d07c777d32a8a838be | |
parent | f8fa7167e2ad67f63d7e873f87e7dab8a782bc17 (diff) |
Treat 'EmojiReact' as a 'Like'.
These messages will have special treatment eventually.
-rw-r--r-- | activitypub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 437cfaf..ce7e71f 100644 --- a/activitypub.c +++ b/activitypub.c @@ -2014,12 +2014,12 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req) } } else - if (strcmp(type, "Like") == 0) { /** **/ + if (strcmp(type, "Like") == 0 || strcmp(type, "EmojiReact") == 0) { /** **/ if (xs_type(object) == XSTYPE_DICT) object = xs_dict_get(object, "id"); if (timeline_admire(snac, object, actor, 1) == HTTP_STATUS_CREATED) - snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); + snac_log(snac, xs_fmt("new '%s' %s %s", type, actor, object)); else snac_log(snac, xs_fmt("repeated 'Like' from %s to %s", actor, object)); |