mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
In 'Follow', ensure the actor object to be followed is here.
Due to the routing change made for the shared inboxes, local users are not in the data storage, so this fixes it.
This commit is contained in:
parent
ecdb5aced8
commit
3414ab48c6
@ -1624,6 +1624,13 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||||||
|
|
||||||
if (strcmp(type, "Follow") == 0) { /** **/
|
if (strcmp(type, "Follow") == 0) { /** **/
|
||||||
if (!follower_check(snac, actor)) {
|
if (!follower_check(snac, actor)) {
|
||||||
|
/* ensure the actor object is here */
|
||||||
|
if (!object_here(actor)) {
|
||||||
|
xs *actor_obj = NULL;
|
||||||
|
actor_request(snac, actor, &actor_obj);
|
||||||
|
object_add(actor, actor_obj);
|
||||||
|
}
|
||||||
|
|
||||||
xs *f_msg = xs_dup(msg);
|
xs *f_msg = xs_dup(msg);
|
||||||
xs *reply = msg_accept(snac, f_msg, actor);
|
xs *reply = msg_accept(snac, f_msg, actor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user