summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-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)
1008 msg = xs_dict_set(msg, "attachment", attach); 1008 msg = xs_dict_set(msg, "attachment", attach);
1009 } 1009 }
1010 1010
1011#ifdef SHARED_INBOX 1011 /* use shared inboxes? */
1012 { 1012 if (xs_type(xs_dict_get(srv_config, "shared_inboxes")) == XSTYPE_TRUE) {
1013 xs *d = xs_dict_new(); 1013 xs *d = xs_dict_new();
1014 xs *si = xs_fmt("%s/shared-inbox", srv_baseurl); 1014 xs *si = xs_fmt("%s/shared-inbox", srv_baseurl);
1015 d = xs_dict_append(d, "sharedInbox", si); 1015 d = xs_dict_append(d, "sharedInbox", si);
1016 msg = xs_dict_set(msg, "endpoints", d); 1016 msg = xs_dict_set(msg, "endpoints", d);
1017 } 1017 }
1018#endif
1019 1018
1020 return msg; 1019 return msg;
1021} 1020}