ability to use a portion of the message-id to display a message wasn't honoured in all cases.

This commit is contained in:
zotlabs 2017-07-18 17:02:50 -07:00
parent 1af844e474
commit 82aa87c190

View File

@ -236,9 +236,9 @@ class Channel extends \Zotlabs\Web\Controller {
if($load || ($checkjs->disabled())) {
if($mid) {
$r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d $item_normal
$r = q("SELECT parent AS item_id from item where mid like '%s' and uid = %d $item_normal
AND item_wall = 1 $sql_extra limit 1",
dbesc($mid),
dbesc($mid . '%'),
intval(\App::$profile['profile_uid'])
);
if (! $r) {