diff options
author | default <nobody@localhost> | 2023-01-11 20:47:36 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-11 20:47:36 +0100 |
commit | 40b3f739d24a7ab87cfc35818638eca061b9d19c (patch) | |
tree | 2c33e01bf02f13f67d8837474773224dd8142b73 | |
parent | 75f8554e38dde34fca8981ad07c610980fb07321 (diff) |
Deleted unused argument in timeline_admire().
-rw-r--r-- | activitypub.c | 4 | ||||
-rw-r--r-- | data.c | 2 | ||||
-rw-r--r-- | html.c | 4 | ||||
-rw-r--r-- | snac.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/activitypub.c b/activitypub.c index be0bf9f..2f74139 100644 --- a/activitypub.c +++ b/activitypub.c @@ -914,7 +914,7 @@ int process_message(snac *snac, char *msg, char *req) if (xs_type(object) == XSTYPE_DICT) object = xs_dict_get(object, "id"); - timeline_admire(snac, msg, object, actor, 1); + timeline_admire(snac, object, actor, 1); snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); do_notify = 1; } @@ -936,7 +936,7 @@ int process_message(snac *snac, char *msg, char *req) xs *who_o = NULL; if (valid_status(actor_request(snac, who, &who_o))) { - timeline_admire(snac, msg, object, actor, 0); + timeline_admire(snac, object, actor, 0); snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object)); do_notify = 1; } @@ -847,7 +847,7 @@ int timeline_add(snac *snac, char *id, char *o_msg) } -void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like) +void timeline_admire(snac *snac, char *id, char *admirer, int like) /* updates a timeline entry with a new admiration */ { /* if we are admiring this, add to both timelines */ @@ -1376,7 +1376,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, if (msg != NULL) { enqueue_message(&snac, msg); - timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 1); + timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 1); } } else @@ -1385,7 +1385,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, if (msg != NULL) { enqueue_message(&snac, msg); - timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 0); + timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 0); } } else @@ -92,7 +92,7 @@ int timeline_del(snac *snac, char *id); d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show); d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show); int timeline_add(snac *snac, char *id, char *o_msg); -void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like); +void timeline_admire(snac *snac, char *id, char *admirer, int like); d_char *timeline_top_level(d_char *list); |