From 845024e1e761f7b62df7031b738d77d46957ad74 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 29 Jul 2015 17:04:17 -0700 Subject: add connection filter to non-zot posts --- include/diaspora.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/diaspora.php') diff --git a/include/diaspora.php b/include/diaspora.php index 79d3909ca..74a56dd79 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1009,6 +1009,11 @@ function diaspora_post($importer,$xml,$msg) { return 202; } + if(! post_is_importable($datarray,$contact)) { + logger('diaspora_post: filtering this author.'); + return 202; + } + $result = item_store($datarray); return; -- cgit v1.2.3