Browse Source

mastoapi: in /v2/search, store found local actors.

default 8 months ago
parent
commit
e113f95738
1 changed files with 3 additions and 0 deletions
  1. 3 0
      mastoapi.c

+ 3 - 0
mastoapi.c

@@ -2347,6 +2347,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
                                 xs *acct = mastoapi_account(actor_o);
 
                                 acl = xs_list_append(acl, acct);
+
+                                if (!object_here(actor))
+                                    object_add(actor, actor_o);
                             }
                         }
                     }