snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit e113f9573847c90534fde51e952bca2ca8bc56c7
parent 7a20b14fbcc169833190e03a5964944e0dcd9e65
Author: default <nobody@localhost>
Date:   Sat, 27 Jul 2024 05:52:41 +0200

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

Diffstat:
Mmastoapi.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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); } } }