diff options
| author | violette <vi@violette.town> | 2026-05-21 19:40:58 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-05-21 19:40:58 +0200 |
| commit | d3309f8b5e43c8116f99e548bb9f874b5cdaf70e (patch) | |
| tree | f69e1f80edbf5d166c0c6a2df90612498e6f92f2 /data.c | |
| parent | f1bd924a68d7da5229ba69eb595ddbcd9b6b5be3 (diff) | |
Added a new 'admiration' timeline.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1606,12 +1606,15 @@ int timeline_admire(snac *snac, const char *id, const char *content = xs_dict_get_path(msg, "content"); const char *type = xs_dict_get_path(msg, "type"); - /* if we are admiring this, add to both timelines */ + /* if we are admiring this, add to both timelines, and store for later */ if (!like && strcmp(admirer, snac->actor) == 0) { object_user_cache_add(snac, id, "public"); object_user_cache_add(snac, id, "private"); } + if (strcmp(admirer, snac->actor) == 0) + object_user_cache_add(snac, id, "admire"); + /* use utf <3 as a like, as it is ugly */ if (type && xs_match(type, "Like|EmojiReact|Emoji") && content && strcmp(content, "❤") != 0) { |