aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-05 08:36:18 +0000
committerMario <mario@mariovavti.com>2021-05-05 08:36:18 +0000
commit0dc09ea238adf141d5a93fd1a734d6156c6e6ad3 (patch)
treee551d02bc238b6b131e1c3ae759a8f90ab25cfde /Zotlabs/Module/Channel.php
parent8d4b1ba7d499bcb8b3b161f3f55660389d857c46 (diff)
downloadvolse-hubzilla-0dc09ea238adf141d5a93fd1a734d6156c6e6ad3.tar.gz
volse-hubzilla-0dc09ea238adf141d5a93fd1a734d6156c6e6ad3.tar.bz2
volse-hubzilla-0dc09ea238adf141d5a93fd1a734d6156c6e6ad3.zip
possible minor performance improvement
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index ab5000b9a..a7deb4f6b 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -308,9 +308,9 @@ class Channel extends Controller {
if (($update) && (!$load)) {
if ($mid) {
- $r = q("SELECT parent AS item_id from item where mid like '%s' and uid = %d $item_normal_update
+ $r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d $item_normal_update
AND item_wall = 1 $simple_update $sql_extra limit 1",
- dbesc($mid . '%'),
+ dbesc($mid),
intval(App::$profile['profile_uid'])
);
}
@@ -356,9 +356,9 @@ class Channel extends Controller {
if ($noscript_content || $load) {
if ($mid) {
- $r = q("SELECT parent AS item_id from item where mid like '%s' and uid = %d $item_normal
+ $r = q("SELECT parent AS item_id from item where mid = '%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) {