Don't overwrrite referrers.

This commit is contained in:
default 2022-10-14 10:18:15 +02:00
parent 72c63ba5b8
commit 32046d5fc0

4
data.c
View file

@ -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 */