aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-10 16:24:31 -0800
committerfriendica <info@friendica.com>2014-12-10 16:24:31 -0800
commit58067c24fc5200993539af6d7f7254877662c3c9 (patch)
tree7f507e2567b1a6a22ecdecf8f2280094e89b0133 /include/security.php
parentb71b45aafc618d32d23c099a4d4db8bad2f09e54 (diff)
downloadvolse-hubzilla-58067c24fc5200993539af6d7f7254877662c3c9.tar.gz
volse-hubzilla-58067c24fc5200993539af6d7f7254877662c3c9.tar.bz2
volse-hubzilla-58067c24fc5200993539af6d7f7254877662c3c9.zip
block adult channels from inclusion in public content feeds
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php
index 8066a76f6..e3915f4a8 100644
--- a/include/security.php
+++ b/include/security.php
@@ -380,7 +380,7 @@ function stream_perms_api_uids($perms = NULL ) {
$ret[] = local_user();
$r = q("select channel_id from channel where channel_r_stream > 0 and (channel_r_stream & %d)>0 and not (channel_pageflags & %d)>0",
intval($perms),
- intval(PAGE_CENSORED|PAGE_SYSTEM|PAGE_REMOVED)
+ intval(PAGE_ADULT|PAGE_CENSORED|PAGE_SYSTEM|PAGE_REMOVED)
);
if($r)
foreach($r as $rr)
@@ -407,7 +407,7 @@ function stream_perms_xchans($perms = NULL ) {
$r = q("select channel_hash from channel where channel_r_stream > 0 and (channel_r_stream & %d)>0 and not (channel_pageflags & %d)>0",
intval($perms),
- intval(PAGE_CENSORED|PAGE_SYETEM|PAGE_REMOVED)
+ intval(PAGE_ADULT|PAGE_CENSORED|PAGE_SYSTEM|PAGE_REMOVED)
);
if($r)
foreach($r as $rr)