From d3309f8b5e43c8116f99e548bb9f874b5cdaf70e Mon Sep 17 00:00:00 2001 From: violette Date: Thu, 21 May 2026 19:40:58 +0200 Subject: Added a new 'admiration' timeline. --- data.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data.c') diff --git a/data.c b/data.c index 7fb261c..ad71b85 100644 --- a/data.c +++ b/data.c @@ -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) { -- cgit