mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Use the newly resolved actor in msg_follow() instead of rewriting the old one.
This commit is contained in:
parent
eeaa6fb72d
commit
c0d5016e1e
1 changed files with 1 additions and 2 deletions
|
@ -509,10 +509,9 @@ d_char *msg_follow(snac *snac, char *url_or_uid)
|
||||||
|
|
||||||
if (r_actor && strcmp(actor, r_actor) != 0) {
|
if (r_actor && strcmp(actor, r_actor) != 0) {
|
||||||
snac_log(snac, xs_fmt("actor to follow is an alias %s -> %s", actor, r_actor));
|
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
|
else
|
||||||
snac_log(snac, xs_fmt("cannot get actor to follow %s %d", actor, status));
|
snac_log(snac, xs_fmt("cannot get actor to follow %s %d", actor, status));
|
||||||
|
|
Loading…
Reference in a new issue