commit 6b344b8

default  ·  2023-01-11 19:51:15 +0000 UTC
parent 40b3f73
Deleted unused argument in timeline_request().
1 files changed,  +6, -6
+6, -6
 1@@ -78,7 +78,7 @@ int actor_request(snac *snac, char *actor, d_char **data)
 2 }
 3 
 4 
 5-int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk)
 6+int timeline_request(snac *snac, char **id, d_char **wrk)
 7 /* ensures that an entry and its ancestors are in the timeline */
 8 {
 9     int status = 0;
10@@ -116,7 +116,7 @@ int timeline_request(snac *snac, char **id, char *referrer, d_char **wrk)
11                     char *in_reply_to = xs_dict_get(object, "inReplyTo");
12 
13                     /* recurse! */
14-                    timeline_request(snac, &in_reply_to, referrer, NULL);
15+                    timeline_request(snac, &in_reply_to, NULL);
16 
17                     /* finally store */
18                     timeline_add(snac, *id, object);
19@@ -417,7 +417,7 @@ d_char *msg_admiration(snac *snac, char *object, char *type)
20     xs *wrk     = NULL;
21 
22     /* call the object */
23-    timeline_request(snac, &object, snac->actor, &wrk);
24+    timeline_request(snac, &object, &wrk);
25 
26     if (valid_status(object_get(object, &a_msg, NULL))) {
27         xs *rcpts = xs_list_new();
28@@ -611,7 +611,7 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
29         xs *wrk   = NULL;
30 
31         /* demand this thing */
32-        timeline_request(snac, &in_reply_to, NULL, &wrk);
33+        timeline_request(snac, &in_reply_to, &wrk);
34 
35         if (valid_status(object_get(in_reply_to, &p_msg, NULL))) {
36             /* add this author as recipient */
37@@ -885,7 +885,7 @@ int process_message(snac *snac, char *msg, char *req)
38                 char *in_reply_to = xs_dict_get(object, "inReplyTo");
39                 xs *wrk           = NULL;
40 
41-                timeline_request(snac, &in_reply_to, NULL, &wrk);
42+                timeline_request(snac, &in_reply_to, &wrk);
43 
44                 if (timeline_add(snac, id, object)) {
45                     snac_log(snac, xs_fmt("new 'Note' %s %s", actor, id));
46@@ -926,7 +926,7 @@ int process_message(snac *snac, char *msg, char *req)
47         if (xs_type(object) == XSTYPE_DICT)
48             object = xs_dict_get(object, "id");
49 
50-        timeline_request(snac, &object, actor, &wrk);
51+        timeline_request(snac, &object, &wrk);
52 
53         if (valid_status(object_get(object, &a_msg, NULL))) {
54             char *who = xs_dict_get(a_msg, "attributedTo");