aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-10 17:11:03 -0700
committerzotlabs <mike@macgirvin.com>2018-05-10 17:11:03 -0700
commit721496f9220fa59059f90d16d3b3fb19337b2f16 (patch)
tree34e5a739486320a7095146f2c383f80003dd7f92 /include/feedutils.php
parentbe225164ebdde1b76a376fade83b93697507264e (diff)
downloadvolse-hubzilla-721496f9220fa59059f90d16d3b3fb19337b2f16.tar.gz
volse-hubzilla-721496f9220fa59059f90d16d3b3fb19337b2f16.tar.bz2
volse-hubzilla-721496f9220fa59059f90d16d3b3fb19337b2f16.zip
hubzilla issue #1169
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 023caaad6..afbe4229e 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1332,6 +1332,12 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
// immediate parent wasn't found. Turn into a top-level post if permissions allow
// but save the thread_parent in case we need to refer to it later.
+ if($importer['channel_system']) {
+ if( ! \Zotlabs\Lib\MessageFilter::evaluate($datarray,get_config('system','pubstream_incl'),get_config('system','pubstream_excl'))) {
+ continue;
+ }
+ }
+
if(! post_is_importable($datarray, $contact))
continue;
@@ -1482,6 +1488,12 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
$author['owner_avatar'] = $contact['thumb'];
}
+ if($importer['channel_system']) {
+ if( ! \Zotlabs\Lib\MessageFilter::evaluate($datarray,get_config('system','pubstream_incl'),get_config('system','pubstream_excl'))) {
+ continue;
+ }
+ }
+
if(! post_is_importable($datarray, $contact))
continue;