diff options
| author | 2023-01-11 20:47:36 +0100 | |
|---|---|---|
| committer | 2023-01-11 20:47:36 +0100 | |
| commit | 40b3f739d24a7ab87cfc35818638eca061b9d19c (patch) | |
| tree | 2c33e01bf02f13f67d8837474773224dd8142b73 | |
| parent | Deleted unused arguments in timeline_add(). (diff) | |
| download | penes-snac2-40b3f739d24a7ab87cfc35818638eca061b9d19c.tar.gz penes-snac2-40b3f739d24a7ab87cfc35818638eca061b9d19c.tar.xz penes-snac2-40b3f739d24a7ab87cfc35818638eca061b9d19c.zip | |
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) | |||
| 914 | if (xs_type(object) == XSTYPE_DICT) | 914 | if (xs_type(object) == XSTYPE_DICT) |
| 915 | object = xs_dict_get(object, "id"); | 915 | object = xs_dict_get(object, "id"); |
| 916 | 916 | ||
| 917 | timeline_admire(snac, msg, object, actor, 1); | 917 | timeline_admire(snac, object, actor, 1); |
| 918 | snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); | 918 | snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); |
| 919 | do_notify = 1; | 919 | do_notify = 1; |
| 920 | } | 920 | } |
| @@ -936,7 +936,7 @@ int process_message(snac *snac, char *msg, char *req) | |||
| 936 | xs *who_o = NULL; | 936 | xs *who_o = NULL; |
| 937 | 937 | ||
| 938 | if (valid_status(actor_request(snac, who, &who_o))) { | 938 | if (valid_status(actor_request(snac, who, &who_o))) { |
| 939 | timeline_admire(snac, msg, object, actor, 0); | 939 | timeline_admire(snac, object, actor, 0); |
| 940 | snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object)); | 940 | snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object)); |
| 941 | do_notify = 1; | 941 | do_notify = 1; |
| 942 | } | 942 | } |
| @@ -847,7 +847,7 @@ int timeline_add(snac *snac, char *id, char *o_msg) | |||
| 847 | } | 847 | } |
| 848 | 848 | ||
| 849 | 849 | ||
| 850 | void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like) | 850 | void timeline_admire(snac *snac, char *id, char *admirer, int like) |
| 851 | /* updates a timeline entry with a new admiration */ | 851 | /* updates a timeline entry with a new admiration */ |
| 852 | { | 852 | { |
| 853 | /* if we are admiring this, add to both timelines */ | 853 | /* 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, | |||
| 1376 | 1376 | ||
| 1377 | if (msg != NULL) { | 1377 | if (msg != NULL) { |
| 1378 | enqueue_message(&snac, msg); | 1378 | enqueue_message(&snac, msg); |
| 1379 | timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 1); | 1379 | timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 1); |
| 1380 | } | 1380 | } |
| 1381 | } | 1381 | } |
| 1382 | else | 1382 | else |
| @@ -1385,7 +1385,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 1385 | 1385 | ||
| 1386 | if (msg != NULL) { | 1386 | if (msg != NULL) { |
| 1387 | enqueue_message(&snac, msg); | 1387 | enqueue_message(&snac, msg); |
| 1388 | timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 0); | 1388 | timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 0); |
| 1389 | } | 1389 | } |
| 1390 | } | 1390 | } |
| 1391 | else | 1391 | else |
| @@ -92,7 +92,7 @@ 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); | 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 *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); |
| 98 | 98 | ||