commit 75f8554
default
·
2023-01-11 19:40:13 +0000 UTC
parent 1aac24c
Deleted unused arguments in timeline_add().
5 files changed,
+7,
-7
+3,
-3
1@@ -119,7 +119,7 @@ int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk)
2 timeline_request(snac, &in_reply_to, referrer, NULL);
3
4 /* finally store */
5- timeline_add(snac, *id, object, in_reply_to, referrer);
6+ timeline_add(snac, *id, object);
7 }
8 }
9 }
10@@ -852,7 +852,7 @@ int process_message(snac *snac, char *msg, char *req)
11 f_msg = xs_dict_set(f_msg, "published", date);
12 }
13
14- timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg, NULL, NULL);
15+ timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg);
16
17 follower_add(snac, actor);
18
19@@ -887,7 +887,7 @@ int process_message(snac *snac, char *msg, char *req)
20
21 timeline_request(snac, &in_reply_to, NULL, &wrk);
22
23- if (timeline_add(snac, id, object, in_reply_to, NULL)) {
24+ if (timeline_add(snac, id, object)) {
25 snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id));
26 do_notify = 1;
27 }
M
data.c
+1,
-1
1@@ -835,7 +835,7 @@ void timeline_update_indexes(snac *snac, const char *id)
2 }
3
4
5-int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer)
6+int timeline_add(snac *snac, char *id, char *o_msg)
7 /* adds a message to the timeline */
8 {
9 int ret = object_add(id, o_msg);
M
html.c
+1,
-1
1@@ -1352,7 +1352,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
2
3 enqueue_message(&snac, c_msg);
4
5- timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL);
6+ timeline_add(&snac, xs_dict_get(msg, "id"), msg);
7 }
8
9 status = 303;
M
main.c
+1,
-1
1@@ -292,7 +292,7 @@ int main(int argc, char *argv[])
2
3 enqueue_message(&snac, c_msg);
4
5- timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL);
6+ timeline_add(&snac, xs_dict_get(msg, "id"), msg);
7
8 return 0;
9 }
M
snac.h
+1,
-1
1@@ -91,7 +91,7 @@ double timeline_mtime(snac *snac);
2 int timeline_del(snac *snac, char *id);
3 d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show);
4 d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show);
5-int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer);
6+int timeline_add(snac *snac, char *id, char *o_msg);
7 void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like);
8
9 d_char *timeline_top_level(d_char *list);