commit 8f172f5
default
·
2023-12-08 07:41:32 +0000 UTC
parent 755ef0e
Usage of shared inboxes is now configurable from the server.json file.
1 files changed,
+2,
-3
+2,
-3
1@@ -1008,14 +1008,13 @@ xs_dict *msg_actor(snac *snac)
2 msg = xs_dict_set(msg, "attachment", attach);
3 }
4
5-#ifdef SHARED_INBOX
6- {
7+ /* use shared inboxes? */
8+ if (xs_type(xs_dict_get(srv_config, "shared_inboxes")) == XSTYPE_TRUE) {
9 xs *d = xs_dict_new();
10 xs *si = xs_fmt("%s/shared-inbox", srv_baseurl);
11 d = xs_dict_append(d, "sharedInbox", si);
12 msg = xs_dict_set(msg, "endpoints", d);
13 }
14-#endif
15
16 return msg;
17 }