summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index c6e4b26..2dd1358 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1624,6 +1624,13 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
if (strcmp(type, "Follow") == 0) { /** **/
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 *reply = msg_accept(snac, f_msg, actor);