diff options
author | zotlabs <mike@macgirvin.com> | 2019-06-18 01:30:05 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-06-21 13:03:58 +0200 |
commit | 892e9cd835612c8155bf3c15436137f94abbb667 (patch) | |
tree | 963904c4d15b68fa0fd32bdffc83d9f2c5d8cabf /Zotlabs/Module/Item.php | |
parent | 109c66aea366c4689ce0d79c34a58cd13ceefac9 (diff) | |
download | volse-hubzilla-892e9cd835612c8155bf3c15436137f94abbb667.tar.gz volse-hubzilla-892e9cd835612c8155bf3c15436137f94abbb667.tar.bz2 volse-hubzilla-892e9cd835612c8155bf3c15436137f94abbb667.zip |
minor zot6 compatibility issues uncovered through daily use
(cherry picked from commit becaa3b920bfe87c031c01bdf35d35db5c82e31e)
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 6bc8c645f..965cbf173 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -96,11 +96,12 @@ class Item extends Controller { } // if we don't have a parent id belonging to the signer see if we can obtain one as a visitor that we have permission to access + // with a bias towards those items owned by channels on this site (item_wall = 1) $sql_extra = item_permissions_sql(0); if (! $i) { - $i = q("select id as item_id from item where mid = '%s' $item_normal $sql_extra limit 1", + $i = q("select id as item_id from item where mid = '%s' $item_normal $sql_extra order by item_wall desc limit 1", dbesc($r[0]['parent_mid']) ); } |