From 71a7569467a53f8533c0eb0f5c62ed94744ed996 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 5 Feb 2023 17:45:00 +0100 Subject: Deleted the type argument from object_get_my_md5() and object_get(). It was never used. --- activitypub.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 4f0e246..42558f4 100644 --- a/activitypub.c +++ b/activitypub.c @@ -469,7 +469,7 @@ d_char *msg_admiration(snac *snac, char *object, char *type) /* call the object */ timeline_request(snac, &object, &wrk); - if (valid_status(object_get(object, &a_msg, NULL))) { + if (valid_status(object_get(object, &a_msg))) { xs *rcpts = xs_list_new(); msg = msg_base(snac, type, "@dummy", snac->actor, "@now", object); @@ -664,7 +664,7 @@ xs_dict *msg_note(snac *snac, xs_str *content, xs_val *rcpts, xs_str *in_reply_t /* demand this thing */ timeline_request(snac, &in_reply_to, &wrk); - if (valid_status(object_get(in_reply_to, &p_msg, NULL))) { + if (valid_status(object_get(in_reply_to, &p_msg))) { /* add this author as recipient */ char *a, *v; @@ -977,7 +977,7 @@ int process_input_message(snac *snac, char *msg, char *req) timeline_request(snac, &object, &wrk); - if (valid_status(object_get(object, &a_msg, NULL))) { + if (valid_status(object_get(object, &a_msg))) { char *who = xs_dict_get(a_msg, "attributedTo"); if (who && !is_muted(snac, who)) { @@ -1262,7 +1262,7 @@ int activitypub_get_handler(d_char *req, char *q_path, while (xs_list_iter(&p, &v)) { xs *i = NULL; - if (valid_status(object_get_by_md5(v, &i, NULL))) { + if (valid_status(object_get_by_md5(v, &i))) { char *type = xs_dict_get(i, "type"); char *id = xs_dict_get(i, "id"); @@ -1287,7 +1287,7 @@ int activitypub_get_handler(d_char *req, char *q_path, if (xs_startswith(p_path, "p/")) { xs *id = xs_fmt("%s/%s", snac.actor, p_path); - status = object_get(id, &msg, NULL); + status = object_get(id, &msg); } else status = 404; -- cgit v1.2.3