浏览代码

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

default 8 月之前
父节点
当前提交
e113f95738
共有 1 个文件被更改,包括 3 次插入0 次删除
  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);
                             }
                         }
                     }