From 6f570a7df37e017184700cd0803fdd5ce9444cb1 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 22 May 2014 16:35:43 -0700 Subject: mod_display: match "message_id begins with xxxx" as well as "message_id = xxxx" --- mod/display.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/display.php b/mod/display.php index f4d4c38c3..efc3265c8 100644 --- a/mod/display.php +++ b/mod/display.php @@ -77,8 +77,8 @@ function display_content(&$a, $update = 0, $load = false) { $target_item = null; - $r = q("select id, uid, mid, parent_mid, item_restrict from item where mid = '%s' limit 1", - dbesc($item_hash) + $r = q("select id, uid, mid, parent_mid, item_restrict from item where mid like '%s' limit 1", + dbesc($item_hash . '%') ); if($r) { @@ -149,6 +149,7 @@ function display_content(&$a, $update = 0, $load = false) { if($load || ($_COOKIE['jsAvailable'] != 1)) { $r = null; + if(local_user()) { $r = q("SELECT * from item WHERE item_restrict = 0 @@ -177,7 +178,6 @@ function display_content(&$a, $update = 0, $load = false) { ); } - } else { $r = array(); -- cgit v1.2.3