mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
From timeline_admire(), add to both caches.
This commit is contained in:
parent
2bf9134fda
commit
85d0f40e65
1 changed files with 4 additions and 2 deletions
6
data.c
6
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)
|
void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like)
|
||||||
/* updates a timeline entry with a new admiration */
|
/* updates a timeline entry with a new admiration */
|
||||||
{
|
{
|
||||||
/* if we are admiring this, add to the public timeline */
|
/* if we are admiring this, add to both timelines */
|
||||||
if (!like && strcmp(admirer, snac->actor) == 0)
|
if (!like && strcmp(admirer, snac->actor) == 0) {
|
||||||
object_user_cache_add(snac, id, "public");
|
object_user_cache_add(snac, id, "public");
|
||||||
|
object_user_cache_add(snac, id, "private");
|
||||||
|
}
|
||||||
|
|
||||||
object_admire(id, admirer, like);
|
object_admire(id, admirer, like);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue