summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-01-11 20:51:15 +0100
committerGravatar default2023-01-11 20:51:15 +0100
commit6b344b8c2e5611bdaefd1f541b054d0758eb6c2b (patch)
treeb2a6e2f9e741222c4fb91dd57cd1c45c46566d2c
parentDeleted unused argument in timeline_admire(). (diff)
downloadsnac2-6b344b8c2e5611bdaefd1f541b054d0758eb6c2b.tar.gz
snac2-6b344b8c2e5611bdaefd1f541b054d0758eb6c2b.tar.xz
snac2-6b344b8c2e5611bdaefd1f541b054d0758eb6c2b.zip
Deleted unused argument in timeline_request().
-rw-r--r--activitypub.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/activitypub.c b/activitypub.c
index 2f74139..92f664c 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -78,7 +78,7 @@ int actor_request(snac *snac, char *actor, d_char **data)
78} 78}
79 79
80 80
81int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk) 81int timeline_request(snac *snac, char **id, d_char **wrk)
82/* ensures that an entry and its ancestors are in the timeline */ 82/* ensures that an entry and its ancestors are in the timeline */
83{ 83{
84 int status = 0; 84 int status = 0;
@@ -116,7 +116,7 @@ int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk)
116 char *in_reply_to = xs_dict_get(object, "inReplyTo"); 116 char *in_reply_to = xs_dict_get(object, "inReplyTo");
117 117
118 /* recurse! */ 118 /* recurse! */
119 timeline_request(snac, &in_reply_to, referrer, NULL); 119 timeline_request(snac, &in_reply_to, NULL);
120 120
121 /* finally store */ 121 /* finally store */
122 timeline_add(snac, *id, object); 122 timeline_add(snac, *id, object);
@@ -417,7 +417,7 @@ d_char *msg_admiration(snac *snac, char *object, char *type)
417 xs *wrk = NULL; 417 xs *wrk = NULL;
418 418
419 /* call the object */ 419 /* call the object */
420 timeline_request(snac, &object, snac->actor, &wrk); 420 timeline_request(snac, &object, &wrk);
421 421
422 if (valid_status(object_get(object, &a_msg, NULL))) { 422 if (valid_status(object_get(object, &a_msg, NULL))) {
423 xs *rcpts = xs_list_new(); 423 xs *rcpts = xs_list_new();
@@ -611,7 +611,7 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
611 xs *wrk = NULL; 611 xs *wrk = NULL;
612 612
613 /* demand this thing */ 613 /* demand this thing */
614 timeline_request(snac, &in_reply_to, NULL, &wrk); 614 timeline_request(snac, &in_reply_to, &wrk);
615 615
616 if (valid_status(object_get(in_reply_to, &p_msg, NULL))) { 616 if (valid_status(object_get(in_reply_to, &p_msg, NULL))) {
617 /* add this author as recipient */ 617 /* add this author as recipient */
@@ -885,7 +885,7 @@ int process_message(snac *snac, char *msg, char *req)
885 char *in_reply_to = xs_dict_get(object, "inReplyTo"); 885 char *in_reply_to = xs_dict_get(object, "inReplyTo");
886 xs *wrk = NULL; 886 xs *wrk = NULL;
887 887
888 timeline_request(snac, &in_reply_to, NULL, &wrk); 888 timeline_request(snac, &in_reply_to, &wrk);
889 889
890 if (timeline_add(snac, id, object)) { 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));
@@ -926,7 +926,7 @@ int process_message(snac *snac, char *msg, char *req)
926 if (xs_type(object) == XSTYPE_DICT) 926 if (xs_type(object) == XSTYPE_DICT)
927 object = xs_dict_get(object, "id"); 927 object = xs_dict_get(object, "id");
928 928
929 timeline_request(snac, &object, actor, &wrk); 929 timeline_request(snac, &object, &wrk);
930 930
931 if (valid_status(object_get(object, &a_msg, NULL))) { 931 if (valid_status(object_get(object, &a_msg, NULL))) {
932 char *who = xs_dict_get(a_msg, "attributedTo"); 932 char *who = xs_dict_get(a_msg, "attributedTo");