diff options
author | friendica <redmatrix@redmatrix.me> | 2015-04-23 21:45:42 -0700 |
---|---|---|
committer | friendica <redmatrix@redmatrix.me> | 2015-04-23 21:45:42 -0700 |
commit | 41343b32c5f9bb640ec92b6e19e95ebe4955cd98 (patch) | |
tree | 727694cd36e0ba5686efcfdb318ecaf2c85e4730 /include/items.php | |
parent | ca305f54210b233dec4f81a8f91da46c2df6c6b7 (diff) | |
download | volse-hubzilla-41343b32c5f9bb640ec92b6e19e95ebe4955cd98.tar.gz volse-hubzilla-41343b32c5f9bb640ec92b6e19e95ebe4955cd98.tar.bz2 volse-hubzilla-41343b32c5f9bb640ec92b6e19e95ebe4955cd98.zip |
block unfederated posts from zot_feed
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 3fb1f3cfe..7f96bfb4b 100755 --- a/include/items.php +++ b/include/items.php @@ -4446,6 +4446,12 @@ function zot_feed($uid,$observer_xchan,$arr) { } if($r) { + for($x = 0; $x < count($r); $x ++) { + if(strpos($r[$x]['postopts'],'nodeliver') !== false) { + unset($r[$x]); + } + } + $parents_str = ids_to_querystr($r,'parent'); $sys_query = ((is_sys_channel($uid)) ? $sql_extra : ''); |