diff options
author | default <nobody@localhost> | 2023-08-12 11:23:01 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-12 11:23:01 +0200 |
commit | cac1c6febd0ce90424831b15a9651026b4bb017c (patch) | |
tree | ee9e290ef0a51aae2fec42665ef62348e5fc2666 /mastoapi.c | |
parent | 499697258d2c266be69dc13dae96083fc78cd3ef (diff) |
Rewritten actor_get() to not depend on a user.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -632,7 +632,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) /* converts an ActivityPub note to a Mastodon status */ { xs *actor = NULL; - actor_get(snac, xs_dict_get(msg, "attributedTo"), &actor); + actor_get(xs_dict_get(msg, "attributedTo"), &actor); /* if the author is not here, discard */ if (actor == NULL) @@ -1310,7 +1310,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, xs *actor = NULL; xs *entry = NULL; - if (!valid_status(actor_get(&snac1, xs_dict_get(noti, "actor"), &actor))) + if (!valid_status(actor_get(xs_dict_get(noti, "actor"), &actor))) continue; if (objid != NULL && !valid_status(object_get(objid, &entry))) |