commit 3414ab4
default
·
2023-12-28 08:26:08 +0000 UTC
parent ecdb5ac
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.
1 files changed,
+7,
-0
+7,
-0
1@@ -1624,6 +1624,13 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
2
3 if (strcmp(type, "Follow") == 0) { /** **/
4 if (!follower_check(snac, actor)) {
5+ /* ensure the actor object is here */
6+ if (!object_here(actor)) {
7+ xs *actor_obj = NULL;
8+ actor_request(snac, actor, &actor_obj);
9+ object_add(actor, actor_obj);
10+ }
11+
12 xs *f_msg = xs_dup(msg);
13 xs *reply = msg_accept(snac, f_msg, actor);
14