summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-03 19:37:52 +0100
committerdefault <nobody@localhost>2022-12-03 19:37:52 +0100
commit30e1a8ce085c91186702ea7149dbab305d912cfb (patch)
treea812798431846ac80c4e65aaba5f3f6ac169029e
parentc70bd2a85da778e0cd88ea7f2c909621f9c0f55f (diff)
Add this user admires to the public timeline.
-rw-r--r--data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.c b/data.c
index 90d568f..36fa65e 100644
--- a/data.c
+++ b/data.c
@@ -800,6 +800,10 @@ int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer
void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like)
/* updates a timeline entry with a new admiration */
{
+ /* if we are admiring this, add to the public timeline */
+ if (!like && strcmp(admirer, snac->actor) == 0)
+ object_user_cache_add(snac, id, "public");
+
object_admire(id, admirer, like);
snac_debug(snac, 1, xs_fmt("timeline_admire (%s) %s %s",