aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-10 06:45:44 +0100
committerdefault <nobody@localhost>2025-01-10 06:45:44 +0100
commit131fbc105a9b82988869fe84c03f2e0b0135e168 (patch)
tree5eab3c8d6dc1666336573195e9dafe7d5332cf4b /activitypub.c
parent361f6b693a0a6eee886fc6e5bacf42f359e7f793 (diff)
Always return a shared inbox for the 'relay' user.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index d31a888..77d8e34 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1321,7 +1321,7 @@ xs_dict *msg_actor(snac *snac)
}
/* use shared inboxes? */
- if (xs_type(xs_dict_get(srv_config, "shared_inboxes")) == XSTYPE_TRUE) {
+ if (xs_is_true(xs_dict_get(srv_config, "shared_inboxes")) || strcmp(snac->uid, "relay") == 0) {
xs *d = xs_dict_new();
xs *si = xs_fmt("%s/shared-inbox", srv_baseurl);
d = xs_dict_append(d, "sharedInbox", si);