diff options
author | friendica <info@friendica.com> | 2014-06-22 17:15:42 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-22 17:15:42 -0700 |
commit | 1dacfb375eac1586495c34110275e70215aeea32 (patch) | |
tree | 249024d10b8afde3862036386201cde8d1cf435c /mod/zfinger.php | |
parent | 301c7cdb89b13c4fc7c502795f121e13c1f9441d (diff) | |
download | volse-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.php | 3 |
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 |