diff options
author | Max Kostikov <max@kostikov.co> | 2019-06-18 11:47:26 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-06-18 11:47:26 +0200 |
commit | e2abc0b7277956651d2947c34a0522a77a59a9a5 (patch) | |
tree | 95e9c8863d20b7c91a6d07297cacd2ef8cf32818 /Zotlabs/Module/Item.php | |
parent | 43cec4398d0d035dd9446988134b814513a73080 (diff) | |
parent | a677a68ab7e1f50f5b11c02a42dbc6cad3ebb444 (diff) | |
download | volse-hubzilla-e2abc0b7277956651d2947c34a0522a77a59a9a5.tar.gz volse-hubzilla-e2abc0b7277956651d2947c34a0522a77a59a9a5.tar.bz2 volse-hubzilla-e2abc0b7277956651d2947c34a0522a77a59a9a5.zip |
Merge branch 'dev' into 'dev'
Dev
See merge request kostikov/core!1
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']) ); } |