summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-16 07:09:25 +0100
committerdefault <nobody@localhost>2022-12-16 07:09:25 +0100
commit427f7341fa5db23b9e67a1d1035bb3dc12d35f40 (patch)
treebc0579dcd28d457163851d67df230d72b970c5bc /activitypub.c
parent286eb291c7d333995e3932bb3c3ec3f55b33402e (diff)
New function enqueue_message().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 9a63de7..79ec98b 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -990,6 +990,17 @@ void process_queue(snac *snac)
if ((type = xs_dict_get(q_item, "type")) == NULL)
type = "output";
+ if (strcmp(type, "message") == 0) {
+ char *msg = xs_dict_get(q_item, "message");
+ xs *inboxes = inbox_list(snac, msg);
+ char *p, *v;
+
+ p = inboxes;
+ while (xs_list_iter(&p, &v)) {
+ enqueue_output(snac, msg, v, 0);
+ }
+ }
+ else
if (strcmp(type, "output") == 0) {
int status;
char *inbox = xs_dict_get(q_item, "inbox");