Deleted unused arguments in timeline_add().

This commit is contained in:
default 2023-01-11 20:40:13 +01:00
parent 1aac24ca75
commit 75f8554e38
5 changed files with 7 additions and 7 deletions

View file

@ -119,7 +119,7 @@ int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk)
timeline_request(snac, &in_reply_to, referrer, NULL); timeline_request(snac, &in_reply_to, referrer, NULL);
/* finally store */ /* finally store */
timeline_add(snac, *id, object, in_reply_to, referrer); timeline_add(snac, *id, object);
} }
} }
} }
@ -852,7 +852,7 @@ int process_message(snac *snac, char *msg, char *req)
f_msg = xs_dict_set(f_msg, "published", date); f_msg = xs_dict_set(f_msg, "published", date);
} }
timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg, NULL, NULL); timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg);
follower_add(snac, actor); follower_add(snac, actor);
@ -887,7 +887,7 @@ int process_message(snac *snac, char *msg, char *req)
timeline_request(snac, &in_reply_to, NULL, &wrk); timeline_request(snac, &in_reply_to, NULL, &wrk);
if (timeline_add(snac, id, object, in_reply_to, NULL)) { if (timeline_add(snac, id, object)) {
snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id));
do_notify = 1; do_notify = 1;
} }

2
data.c
View file

@ -835,7 +835,7 @@ void timeline_update_indexes(snac *snac, const char *id)
} }
int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer) int timeline_add(snac *snac, char *id, char *o_msg)
/* adds a message to the timeline */ /* adds a message to the timeline */
{ {
int ret = object_add(id, o_msg); int ret = object_add(id, o_msg);

2
html.c
View file

@ -1352,7 +1352,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
enqueue_message(&snac, c_msg); enqueue_message(&snac, c_msg);
timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); timeline_add(&snac, xs_dict_get(msg, "id"), msg);
} }
status = 303; status = 303;

2
main.c
View file

@ -292,7 +292,7 @@ int main(int argc, char *argv[])
enqueue_message(&snac, c_msg); enqueue_message(&snac, c_msg);
timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); timeline_add(&snac, xs_dict_get(msg, "id"), msg);
return 0; return 0;
} }

2
snac.h
View file

@ -91,7 +91,7 @@ double timeline_mtime(snac *snac);
int timeline_del(snac *snac, char *id); 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_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); d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show);
int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer); 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 *o_msg, char *id, char *admirer, int like);
d_char *timeline_top_level(d_char *list); d_char *timeline_top_level(d_char *list);