diff options
author | Mario <mario@mariovavti.com> | 2022-03-03 20:31:43 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-03-03 20:31:43 +0000 |
commit | eeea3251ad533674795ec2ea962d31eafe29d8ea (patch) | |
tree | a33f9455f3b9ff5def3d5e8b4058124b89591ca9 /Zotlabs/Lib/Libzot.php | |
parent | c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa (diff) | |
download | volse-hubzilla-eeea3251ad533674795ec2ea962d31eafe29d8ea.tar.gz volse-hubzilla-eeea3251ad533674795ec2ea962d31eafe29d8ea.tar.bz2 volse-hubzilla-eeea3251ad533674795ec2ea962d31eafe29d8ea.zip |
more work on enhanced content filters
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index fdeb7a3b0..40422a7d8 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1578,7 +1578,11 @@ class Libzot { $local_public = false; continue; } - if (!MessageFilter::evaluate($arr, get_config('system', 'pubstream_incl'), get_config('system', 'pubstream_excl'))) { + + $incl = get_config('system','pubstream_incl'); + $excl = get_config('system','pubstream_excl'); + + if(($incl || $excl) && !MessageFilter::evaluate($arr, $incl, $excl)) { $local_public = false; continue; } |