diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-03-09 21:36:28 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-03-09 21:36:28 +0100 |
commit | 7ee495624e71125074a4eb9f5533a7af2db2f6b6 (patch) | |
tree | e4e0c7fc3545c7f970c223da70b21b1e047167fa /Zotlabs/Module/Search.php | |
parent | 45cc2d7bd8a214f5178b6f4fd3ec3a71606c3c79 (diff) | |
download | volse-hubzilla-7ee495624e71125074a4eb9f5533a7af2db2f6b6.tar.gz volse-hubzilla-7ee495624e71125074a4eb9f5533a7af2db2f6b6.tar.bz2 volse-hubzilla-7ee495624e71125074a4eb9f5533a7af2db2f6b6.zip |
a possible fix for issue #1529
Diffstat (limited to 'Zotlabs/Module/Search.php')
-rw-r--r-- | Zotlabs/Module/Search.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php index eeeff9613..8a87d98f7 100644 --- a/Zotlabs/Module/Search.php +++ b/Zotlabs/Module/Search.php @@ -14,7 +14,6 @@ class Search extends Controller { App::$data['search'] = escape_tags($_REQUEST['search']); } - function get($update = 0, $load = false) { if ((get_config('system', 'block_public')) || (get_config('system', 'block_public_search'))) { @@ -194,7 +193,7 @@ class Search extends Controller { if (local_channel()) { $r = q("SELECT mid, MAX(id) as item_id from item - WHERE ((( item.allow_cid = '' AND item.allow_gid = '' AND item.deny_cid = '' AND item.deny_gid = '' AND item_private = 0 ) + WHERE ((( item.allow_cid = '' AND item.allow_gid = '' AND item.deny_cid = '' AND item.deny_gid = '' AND item_private = 0 ) OR ( item.uid = %d )) OR item.owner_xchan = '%s' ) $item_normal $sql_extra @@ -210,7 +209,7 @@ class Search extends Controller { and owner_xchan in ( " . stream_perms_xchans(($observer) ? (PERMS_NETWORK | PERMS_PUBLIC) : PERMS_PUBLIC) . " )) $pub_sql ) OR owner_xchan = '%s') $item_normal - $sql_extra + $sql_extra group by mid, created order by created desc $pager_sql", dbesc($sys['xchan_hash']) ); |