summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-12 11:23:01 +0200
committerdefault <nobody@localhost>2023-08-12 11:23:01 +0200
commitcac1c6febd0ce90424831b15a9651026b4bb017c (patch)
treeee9e290ef0a51aae2fec42665ef62348e5fc2666 /mastoapi.c
parent499697258d2c266be69dc13dae96083fc78cd3ef (diff)
Rewritten actor_get() to not depend on a user.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 25e54d3..980d900 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -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)))