diff options
| author | 2022-12-03 21:34:10 +0100 | |
|---|---|---|
| committer | 2022-12-03 21:34:10 +0100 | |
| commit | 85d0f40e65c90e2c6c6b117e15e257ecb3a6b336 (patch) | |
| tree | 421662dd66af22075f9a88fd1804d646dedde023 | |
| parent | Added :shrug2: (diff) | |
| download | snac2-85d0f40e65c90e2c6c6b117e15e257ecb3a6b336.tar.gz snac2-85d0f40e65c90e2c6c6b117e15e257ecb3a6b336.tar.xz snac2-85d0f40e65c90e2c6c6b117e15e257ecb3a6b336.zip | |
From timeline_admire(), add to both caches.
| -rw-r--r-- | data.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -807,9 +807,11 @@ int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer | |||
| 807 | void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like) | 807 | void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like) |
| 808 | /* updates a timeline entry with a new admiration */ | 808 | /* updates a timeline entry with a new admiration */ |
| 809 | { | 809 | { |
| 810 | /* if we are admiring this, add to the public timeline */ | 810 | /* if we are admiring this, add to both timelines */ |
| 811 | if (!like && strcmp(admirer, snac->actor) == 0) | 811 | if (!like && strcmp(admirer, snac->actor) == 0) { |
| 812 | object_user_cache_add(snac, id, "public"); | 812 | object_user_cache_add(snac, id, "public"); |
| 813 | object_user_cache_add(snac, id, "private"); | ||
| 814 | } | ||
| 813 | 815 | ||
| 814 | object_admire(id, admirer, like); | 816 | object_admire(id, admirer, like); |
| 815 | 817 | ||