diff options
author | default <nobody@localhost> | 2022-11-28 10:46:42 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-28 10:46:42 +0100 |
commit | 07fec7127326cf02d50bd148581908d51cc697f6 (patch) | |
tree | c62856673c0e80a71782fa3bd4f8452e5132638e /activitypub.c | |
parent | 9c136dacdf790fdfe30d1c48ad9b03add206bf73 (diff) |
Upgraded followers to the new db.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/activitypub.c b/activitypub.c index 7360af1..d22261d 100644 --- a/activitypub.c +++ b/activitypub.c @@ -192,12 +192,10 @@ d_char *recipient_list(snac *snac, char *msg, int expand_public) if (expand_public && strcmp(v, public_address) == 0) { /* iterate the followers and add them */ xs *fwers = follower_list(snac); - char *fw; + char *actor; char *p = fwers; - while (xs_list_iter(&p, &fw)) { - char *actor = xs_dict_get(fw, "actor"); - + while (xs_list_iter(&p, &actor)) { if (xs_list_in(list, actor) == -1) list = xs_list_append(list, actor); } @@ -832,7 +830,7 @@ int process_message(snac *snac, char *msg, char *req) timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg, NULL, NULL); - follower_add(snac, actor, f_msg); + follower_add(snac, actor); snac_log(snac, xs_fmt("New follower %s", actor)); do_notify = 1; |