summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-12-02 19:14:59 +0100
committerGravatar default2022-12-02 19:14:59 +0100
commitc00e3afcdc8cf1503439a174621090b133ad329f (patch)
tree3738fb8d555a55878011cc70a33a05733e2322e8 /activitypub.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-c00e3afcdc8cf1503439a174621090b133ad329f.tar.gz
snac2-c00e3afcdc8cf1503439a174621090b133ad329f.tar.xz
snac2-c00e3afcdc8cf1503439a174621090b133ad329f.zip
Big data storage change.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 7f63310..8e173c5 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -879,7 +879,7 @@ int process_message(snac *snac, char *msg, char *req)
879 if (xs_type(object) == XSTYPE_DICT) 879 if (xs_type(object) == XSTYPE_DICT)
880 object = xs_dict_get(object, "id"); 880 object = xs_dict_get(object, "id");
881 881
882 timeline_admire(snac, object, actor, 1); 882 timeline_admire(snac, msg, object, actor, 1);
883 snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object)); 883 snac_log(snac, xs_fmt("new 'Like' %s %s", actor, object));
884 do_notify = 1; 884 do_notify = 1;
885 } 885 }
@@ -900,7 +900,7 @@ int process_message(snac *snac, char *msg, char *req)
900 xs *who_o = NULL; 900 xs *who_o = NULL;
901 901
902 if (valid_status(actor_request(snac, who, &who_o))) { 902 if (valid_status(actor_request(snac, who, &who_o))) {
903 timeline_admire(snac, object, actor, 0); 903 timeline_admire(snac, msg, object, actor, 0);
904 snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object)); 904 snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object));
905 do_notify = 1; 905 do_notify = 1;
906 } 906 }
@@ -1094,7 +1094,7 @@ int activitypub_get_handler(d_char *req, char *q_path,
1094 else 1094 else
1095 if (strcmp(p_path, "outbox") == 0) { 1095 if (strcmp(p_path, "outbox") == 0) {
1096 xs *id = xs_fmt("%s/outbox", snac.actor); 1096 xs *id = xs_fmt("%s/outbox", snac.actor);
1097 xs *elems = local_list(&snac, 20); 1097 xs *elems = timeline_list(&snac, "public", 20);
1098 xs *list = xs_list_new(); 1098 xs *list = xs_list_new();
1099 msg = msg_collection(&snac, id); 1099 msg = msg_collection(&snac, id);
1100 char *p, *v; 1100 char *p, *v;