diff options
| author | 2023-01-11 20:40:13 +0100 | |
|---|---|---|
| committer | 2023-01-11 20:40:13 +0100 | |
| commit | 75f8554e38dde34fca8981ad07c610980fb07321 (patch) | |
| tree | e88fe6c3b390f6704d69422f7dfeebd80b4dd27e | |
| parent | More keyId/signature tweaks. (diff) | |
| download | snac2-75f8554e38dde34fca8981ad07c610980fb07321.tar.gz snac2-75f8554e38dde34fca8981ad07c610980fb07321.tar.xz snac2-75f8554e38dde34fca8981ad07c610980fb07321.zip | |
Deleted unused arguments in timeline_add().
| -rw-r--r-- | activitypub.c | 6 | ||||
| -rw-r--r-- | data.c | 2 | ||||
| -rw-r--r-- | html.c | 2 | ||||
| -rw-r--r-- | main.c | 2 | ||||
| -rw-r--r-- | snac.h | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/activitypub.c b/activitypub.c index b316574..be0bf9f 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -119,7 +119,7 @@ int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk) | |||
| 119 | timeline_request(snac, &in_reply_to, referrer, NULL); | 119 | timeline_request(snac, &in_reply_to, referrer, NULL); |
| 120 | 120 | ||
| 121 | /* finally store */ | 121 | /* finally store */ |
| 122 | timeline_add(snac, *id, object, in_reply_to, referrer); | 122 | timeline_add(snac, *id, object); |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
| 125 | } | 125 | } |
| @@ -852,7 +852,7 @@ int process_message(snac *snac, char *msg, char *req) | |||
| 852 | f_msg = xs_dict_set(f_msg, "published", date); | 852 | f_msg = xs_dict_set(f_msg, "published", date); |
| 853 | } | 853 | } |
| 854 | 854 | ||
| 855 | timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg, NULL, NULL); | 855 | timeline_add(snac, xs_dict_get(f_msg, "id"), f_msg); |
| 856 | 856 | ||
| 857 | follower_add(snac, actor); | 857 | follower_add(snac, actor); |
| 858 | 858 | ||
| @@ -887,7 +887,7 @@ int process_message(snac *snac, char *msg, char *req) | |||
| 887 | 887 | ||
| 888 | timeline_request(snac, &in_reply_to, NULL, &wrk); | 888 | timeline_request(snac, &in_reply_to, NULL, &wrk); |
| 889 | 889 | ||
| 890 | if (timeline_add(snac, id, object, in_reply_to, NULL)) { | 890 | if (timeline_add(snac, id, object)) { |
| 891 | snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); | 891 | snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id)); |
| 892 | do_notify = 1; | 892 | do_notify = 1; |
| 893 | } | 893 | } |
| @@ -835,7 +835,7 @@ void timeline_update_indexes(snac *snac, const char *id) | |||
| 835 | } | 835 | } |
| 836 | 836 | ||
| 837 | 837 | ||
| 838 | int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer) | 838 | int timeline_add(snac *snac, char *id, char *o_msg) |
| 839 | /* adds a message to the timeline */ | 839 | /* adds a message to the timeline */ |
| 840 | { | 840 | { |
| 841 | int ret = object_add(id, o_msg); | 841 | int ret = object_add(id, o_msg); |
| @@ -1352,7 +1352,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 1352 | 1352 | ||
| 1353 | enqueue_message(&snac, c_msg); | 1353 | enqueue_message(&snac, c_msg); |
| 1354 | 1354 | ||
| 1355 | timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); | 1355 | timeline_add(&snac, xs_dict_get(msg, "id"), msg); |
| 1356 | } | 1356 | } |
| 1357 | 1357 | ||
| 1358 | status = 303; | 1358 | status = 303; |
| @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) | |||
| 292 | 292 | ||
| 293 | enqueue_message(&snac, c_msg); | 293 | enqueue_message(&snac, c_msg); |
| 294 | 294 | ||
| 295 | timeline_add(&snac, xs_dict_get(msg, "id"), msg, in_reply_to, NULL); | 295 | timeline_add(&snac, xs_dict_get(msg, "id"), msg); |
| 296 | 296 | ||
| 297 | return 0; | 297 | return 0; |
| 298 | } | 298 | } |
| @@ -91,7 +91,7 @@ double timeline_mtime(snac *snac); | |||
| 91 | int timeline_del(snac *snac, char *id); | 91 | int timeline_del(snac *snac, char *id); |
| 92 | d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show); | 92 | d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show); |
| 93 | d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show); | 93 | d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show); |
| 94 | int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer); | 94 | int timeline_add(snac *snac, char *id, char *o_msg); |
| 95 | void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like); | 95 | void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like); |
| 96 | 96 | ||
| 97 | d_char *timeline_top_level(d_char *list); | 97 | d_char *timeline_top_level(d_char *list); |