Pārlūkot izejas kodu

Always return a shared inbox for the 'relay' user.

default 1 gadu atpakaļ
vecāks
revīzija
131fbc105a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      activitypub.c

+ 1 - 1
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);