소스 검색

Inbox collection can be disabled from the config file.

default 3 년 전
부모
커밋
21e562cfbd
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      activitypub.c

+ 7 - 2
activitypub.c

@@ -118,8 +118,13 @@ int actor_request(snac *snac, char *actor, d_char **data)
         }
         }
     }
     }
 
 
-    if (valid_status(status) && data && *data)
-        inbox_add_by_actor(*data);
+    /* collect the (presumed) shared inbox in this actor */
+    if (xs_type(xs_dict_get(srv_config, "disable_inbox_collection")) != XSTYPE_TRUE) {
+        if (valid_status(status) && data && *data)
+            inbox_add_by_actor(*data);
+    }
+    else
+        srv_log(xs_fmt("NOT collected"));
 
 
     return status;
     return status;
 }
 }