commit 21e562c

default  ·  2023-03-08 09:14:40 +0000 UTC
parent cef1b92
Inbox collection can be disabled from the config file.
1 files changed,  +7, -2
+7, -2
 1@@ -118,8 +118,13 @@ int actor_request(snac *snac, char *actor, d_char **data)
 2         }
 3     }
 4 
 5-    if (valid_status(status) && data && *data)
 6-        inbox_add_by_actor(*data);
 7+    /* collect the (presumed) shared inbox in this actor */
 8+    if (xs_type(xs_dict_get(srv_config, "disable_inbox_collection")) != XSTYPE_TRUE) {
 9+        if (valid_status(status) && data && *data)
10+            inbox_add_by_actor(*data);
11+    }
12+    else
13+        srv_log(xs_fmt("NOT collected"));
14 
15     return status;
16 }