From 1dacfb375eac1586495c34110275e70215aeea32 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 22 Jun 2014 17:15:42 -0700 Subject: honour the admin censored flag in the directory, and some slow progress on extended likes --- mod/zfinger.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/zfinger.php') 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 -- cgit v1.2.3