summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-01-11 20:47:36 +0100
committerGravatar default2023-01-11 20:47:36 +0100
commit40b3f739d24a7ab87cfc35818638eca061b9d19c (patch)
tree2c33e01bf02f13f67d8837474773224dd8142b73
parentDeleted unused arguments in timeline_add(). (diff)
downloadsnac2-40b3f739d24a7ab87cfc35818638eca061b9d19c.tar.gz
snac2-40b3f739d24a7ab87cfc35818638eca061b9d19c.tar.xz
snac2-40b3f739d24a7ab87cfc35818638eca061b9d19c.zip
Deleted unused argument in timeline_admire().
-rw-r--r--activitypub.c4
-rw-r--r--data.c2
-rw-r--r--html.c4
-rw-r--r--snac.h2
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 }
diff --git a/data.c b/data.c
index 2a73701..f623111 100644
--- a/data.c
+++ b/data.c
@@ -847,7 +847,7 @@ int timeline_add(snac *snac, char *id, char *o_msg)
847} 847}
848 848
849 849
850void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like) 850void 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 */
diff --git a/html.c b/html.c
index 276caf6..4f3da63 100644
--- a/html.c
+++ b/html.c
@@ -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
diff --git a/snac.h b/snac.h
index 1a09daf..7eea07b 100644
--- a/snac.h
+++ b/snac.h
@@ -92,7 +92,7 @@ int timeline_del(snac *snac, char *id);
92d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show); 92d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show);
93d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show); 93d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show);
94int timeline_add(snac *snac, char *id, char *o_msg); 94int timeline_add(snac *snac, char *id, char *o_msg);
95void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like); 95void timeline_admire(snac *snac, char *id, char *admirer, int like);
96 96
97d_char *timeline_top_level(d_char *list); 97d_char *timeline_top_level(d_char *list);
98 98