mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
zot_info(): improved check for deleted
This commit is contained in:
@@ -2724,12 +2724,13 @@ class Libzot {
|
||||
$e = $r[0];
|
||||
$id = $e['channel_id'];
|
||||
|
||||
$sys_channel = ((empty($e['channel_system'])) ? false : true);
|
||||
$sys_channel = ((intval($e['channel_system'])) ? true : false);
|
||||
$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 = ((empty($e['xchan_deleted'])) ? false : true);
|
||||
// if the xchan has been deleted (instead of marked deleted) xchan entries will return null
|
||||
$deleted = ((intval($e['xchan_deleted']) || $e['xchan_hash'] === null) ? true : false);
|
||||
|
||||
if ($deleted || $censored || $sys_channel)
|
||||
$searchable = false;
|
||||
|
||||
Reference in New Issue
Block a user