Merge branch 'mod_display_fixes' into 'dev'

if local_channel() and updating the page do not query for another item if the...

See merge request hubzilla/core!1519
This commit is contained in:
M. Dent 2019-02-19 01:23:28 +01:00
commit 136d50a7c5

View File

@ -179,7 +179,6 @@ class Display extends \Zotlabs\Web\Controller {
$static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0); $static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0);
$simple_update = (($update) ? " AND item_unseen = 1 " : ''); $simple_update = (($update) ? " AND item_unseen = 1 " : '');
if($update && $_SESSION['loadtime']) if($update && $_SESSION['loadtime'])
@ -314,7 +313,7 @@ class Display extends \Zotlabs\Web\Controller {
} }
} }
if(! $r) { if($r === null) {
// in case somebody turned off public access to sys channel content using permissions // in case somebody turned off public access to sys channel content using permissions
// make that content unsearchable by ensuring the owner_xchan can't match // make that content unsearchable by ensuring the owner_xchan can't match
if(! perm_is_allowed($sysid,$observer_hash,'view_stream')) if(! perm_is_allowed($sysid,$observer_hash,'view_stream'))