commit d91a016

default  ·  2024-08-06 16:15:04 +0000 UTC
parent 88fc843
mastoapi: show EmojiReact notifications as 'favourites'.
1 files changed,  +1, -1
+1, -1
1@@ -1832,7 +1832,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2                     continue;
3 
4                 /* convert the type */
5-                if (strcmp(type, "Like") == 0)
6+                if (strcmp(type, "Like") == 0 || strcmp(type, "EmojiReact") == 0)
7                     type = "favourite";
8                 else
9                 if (strcmp(type, "Announce") == 0)