summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-07-27 05:52:41 +0200
committerdefault <nobody@localhost>2024-07-27 05:52:41 +0200
commite113f9573847c90534fde51e952bca2ca8bc56c7 (patch)
tree35d2e4125fc170551dc6655b870234da3e4cc923 /mastoapi.c
parent7a20b14fbcc169833190e03a5964944e0dcd9e65 (diff)
mastoapi: in /v2/search, store found local actors.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 80d03be..cb4c6a1 100644
--- a/mastoapi.c
+++ b/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);
}
}
}