summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-03 21:34:10 +0100
committerdefault <nobody@localhost>2022-12-03 21:34:10 +0100
commit85d0f40e65c90e2c6c6b117e15e257ecb3a6b336 (patch)
tree421662dd66af22075f9a88fd1804d646dedde023 /data.c
parent2bf9134fda4c0adaad88f2d00549743faec0a4ac (diff)
From timeline_admire(), add to both caches.
Diffstat (limited to 'data.c')
-rw-r--r--data.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/data.c b/data.c
index 0c58f8e..13c3372 100644
--- a/data.c
+++ b/data.c
@@ -807,9 +807,11 @@ 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)
+ /* if we are admiring this, add to both timelines */
+ if (!like && strcmp(admirer, snac->actor) == 0) {
object_user_cache_add(snac, id, "public");
+ object_user_cache_add(snac, id, "private");
+ }
object_admire(id, admirer, like);