summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-08 08:41:32 +0100
committerdefault <nobody@localhost>2023-12-08 08:41:32 +0100
commit8f172f5e0e23a87735e7eaee53487ad084c91e86 (patch)
tree2b42fcc683a9c861847b2808d2806da28a02f796
parent755ef0ed9734c9b40809aafc687e673c3e7fabe3 (diff)
Usage of shared inboxes is now configurable from the server.json file.
-rw-r--r--activitypub.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index c57458f..1b83bd8 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1008,14 +1008,13 @@ xs_dict *msg_actor(snac *snac)
msg = xs_dict_set(msg, "attachment", attach);
}
-#ifdef SHARED_INBOX
- {
+ /* use shared inboxes? */
+ if (xs_type(xs_dict_get(srv_config, "shared_inboxes")) == XSTYPE_TRUE) {
xs *d = xs_dict_new();
xs *si = xs_fmt("%s/shared-inbox", srv_baseurl);
d = xs_dict_append(d, "sharedInbox", si);
msg = xs_dict_set(msg, "endpoints", d);
}
-#endif
return msg;
}