aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-18 17:02:50 -0700
committerzotlabs <mike@macgirvin.com>2017-07-18 17:02:50 -0700
commit82aa87c190e65b16bbf3656cdae7260ff11c780f (patch)
tree7f53471790836b2a4d0e0bdf5c43b02f9c396c85
parent1af844e474a039a72a9ac779985888816583c9dc (diff)
downloadvolse-hubzilla-82aa87c190e65b16bbf3656cdae7260ff11c780f.tar.gz
volse-hubzilla-82aa87c190e65b16bbf3656cdae7260ff11c780f.tar.bz2
volse-hubzilla-82aa87c190e65b16bbf3656cdae7260ff11c780f.zip
ability to use a portion of the message-id to display a message wasn't honoured in all cases.
-rw-r--r--Zotlabs/Module/Channel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index 51c937270..98c1e1d61 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -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) {