aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorviolette <vi@violette.town>2026-05-21 19:40:58 +0200
committergrunfink <grunfink@comam.es>2026-05-21 19:40:58 +0200
commitd3309f8b5e43c8116f99e548bb9f874b5cdaf70e (patch)
treef69e1f80edbf5d166c0c6a2df90612498e6f92f2 /data.c
parentf1bd924a68d7da5229ba69eb595ddbcd9b6b5be3 (diff)
Added a new 'admiration' timeline.
Diffstat (limited to 'data.c')
-rw-r--r--data.c5
1 files changed, 4 insertions, 1 deletions
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) {