aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-22 17:15:42 -0700
committerfriendica <info@friendica.com>2014-06-22 17:15:42 -0700
commit1dacfb375eac1586495c34110275e70215aeea32 (patch)
tree249024d10b8afde3862036386201cde8d1cf435c /mod/zfinger.php
parent301c7cdb89b13c4fc7c502795f121e13c1f9441d (diff)
downloadvolse-hubzilla-1dacfb375eac1586495c34110275e70215aeea32.tar.gz
volse-hubzilla-1dacfb375eac1586495c34110275e70215aeea32.tar.bz2
volse-hubzilla-1dacfb375eac1586495c34110275e70215aeea32.zip
honour the admin censored flag in the directory, and some slow progress on extended likes
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r--mod/zfinger.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index ddfa37761..d79025885 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -101,10 +101,11 @@ function zfinger_init(&$a) {
$special_channel = (($e['channel_pageflags'] & PAGE_PREMIUM) ? true : false);
$adult_channel = (($e['channel_pageflags'] & PAGE_ADULT) ? true : false);
+ $censored = (($e['channel_pageflags'] & PAGE_CENSORED) ? true : false);
$searchable = (($e['channel_pageflags'] & PAGE_HIDDEN) ? false : true);
$deleted = (($e['xchan_flags'] & XCHAN_FLAGS_DELETED) ? true : false);
- if(($e['xchan_flags'] & XCHAN_FLAGS_HIDDEN) || $deleted)
+ if(($e['xchan_flags'] & XCHAN_FLAGS_HIDDEN) || $deleted || $censored)
$searchable = false;
// This is for birthdays and keywords, but must check access permissions