mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 08:53:36 +00:00
Don't overwrrite referrers.
This commit is contained in:
parent
72c63ba5b8
commit
32046d5fc0
1 changed files with 2 additions and 2 deletions
4
data.c
4
data.c
|
@ -586,8 +586,8 @@ void timeline_admire(snac *snac, char *id, char *admirer, int like)
|
|||
if (xs_list_in(list, admirer) == -1)
|
||||
list = xs_list_append(list, admirer);
|
||||
|
||||
/* set the admirer as the referrer */
|
||||
if (!like)
|
||||
/* set the admirer as the referrer (if not already set) */
|
||||
if (!like && xs_is_null(xs_dict_get(meta, "referrer")))
|
||||
meta = xs_dict_set(meta, "referrer", admirer);
|
||||
|
||||
/* re-store */
|
||||
|
|
Loading…
Reference in a new issue