mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Usage of shared inboxes is now configurable from the server.json file.
This commit is contained in:
parent
755ef0ed97
commit
8f172f5e0e
@ -1008,14 +1008,13 @@ xs_dict *msg_actor(snac *snac)
|
|||||||
msg = xs_dict_set(msg, "attachment", attach);
|
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 *d = xs_dict_new();
|
||||||
xs *si = xs_fmt("%s/shared-inbox", srv_baseurl);
|
xs *si = xs_fmt("%s/shared-inbox", srv_baseurl);
|
||||||
d = xs_dict_append(d, "sharedInbox", si);
|
d = xs_dict_append(d, "sharedInbox", si);
|
||||||
msg = xs_dict_set(msg, "endpoints", d);
|
msg = xs_dict_set(msg, "endpoints", d);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user