diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-14 15:32:33 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-14 15:32:33 -0800 |
commit | 465d89129caaaa0240229f8d6f81d68f26eb60b0 (patch) | |
tree | 2d547ae70a283f6cc0c92c10863b6c837f522d4d /Zotlabs/Lib/Apps.php | |
parent | 24da5d82db8316a54ccb41616e0e2acb5d73fc84 (diff) | |
download | volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.tar.gz volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.tar.bz2 volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.zip |
provide option to block the public stream unless authenticated, since there could be legal issues with unmoderated content
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index d2a307fd5..f91dc8e49 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -119,6 +119,7 @@ class Apps { static public function parse_app_description($f,$translate = true) { + $ret = array(); $baseurl = z_root(); @@ -194,6 +195,10 @@ class Apps { if(! is_public_profile()) unset($ret); break; + case 'public_stream': + if(! can_view_public_stream()) + unset($ret); + break; case 'observer': if(! $observer) unset($ret); @@ -346,6 +351,10 @@ class Apps { if(! is_public_profile()) return ''; break; + case 'public_stream': + if(! can_view_public_stream()) + return ''; + break; case 'observer': $observer = \App::get_observer(); if(! $observer) |