aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-29 17:04:17 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-29 17:04:17 -0700
commit845024e1e761f7b62df7031b738d77d46957ad74 (patch)
tree40f33ccda06600683660073827f7813a97ee548f /include/diaspora.php
parente3f605e242ed1bcb2da6a8ddf4bad1670583953a (diff)
downloadvolse-hubzilla-845024e1e761f7b62df7031b738d77d46957ad74.tar.gz
volse-hubzilla-845024e1e761f7b62df7031b738d77d46957ad74.tar.bz2
volse-hubzilla-845024e1e761f7b62df7031b738d77d46957ad74.zip
add connection filter to non-zot posts
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php5
1 files changed, 5 insertions, 0 deletions
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;