fix with update with /channel?f=&mid=hash issue #461

This commit is contained in:
Mario Vavti 2016-09-28 11:04:02 +02:00
parent 71632ac2d2
commit d92e9f38f8
2 changed files with 3 additions and 2 deletions

View File

@ -178,10 +178,11 @@ class Channel extends \Zotlabs\Web\Controller {
if($mid) {
$r = q("SELECT parent AS item_id from item where mid like '%s' and uid = %d $item_normal
AND item_wall = 1 AND item_unseen = 1 $sql_extra limit 1",
AND item_wall = 1 $simple_update $sql_extra limit 1",
dbesc($mid . '%'),
intval(\App::$profile['profile_uid'])
);
$_SESSION['loadtime'] = datetime_convert();
}
else {
$r = q("SELECT distinct parent AS `item_id`, created from item

View File

@ -67,4 +67,4 @@ function get() {
killme();
}
}
}