diff options
author | default <nobody@localhost> | 2022-11-02 21:36:55 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-02 21:36:55 +0100 |
commit | c0d5016e1e809ab720e02bfb8a4920b31c676ca6 (patch) | |
tree | ef8e057e131da9c46b426f9c78d241195e746a6d /activitypub.c | |
parent | eeaa6fb72dff699175c5b786e8f149a23df8efef (diff) |
Use the newly resolved actor in msg_follow() instead of rewriting the old one.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index be1cc5d..9cede58 100644 --- a/activitypub.c +++ b/activitypub.c @@ -509,10 +509,9 @@ d_char *msg_follow(snac *snac, char *url_or_uid) if (r_actor && strcmp(actor, r_actor) != 0) { snac_log(snac, xs_fmt("actor to follow is an alias %s -> %s", actor, r_actor)); - actor = r_actor; } - msg = msg_base(snac, "Follow", "@dummy", snac->actor, NULL, actor); + msg = msg_base(snac, "Follow", "@dummy", snac->actor, NULL, r_actor); } else snac_log(snac, xs_fmt("cannot get actor to follow %s %d", actor, status)); |