diff options
author | Mario <mario@mariovavti.com> | 2023-02-15 13:33:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-02-15 13:33:23 +0000 |
commit | 09a60774d746de57d6f9e479a1f6cf70c691f031 (patch) | |
tree | 1c93fee3a5a88b4cbcd9d9b9237451cf2fee99a1 /include/text.php | |
parent | 1ca988b177834467671137c94f17a5948b465f6f (diff) | |
download | volse-hubzilla-09a60774d746de57d6f9e479a1f6cf70c691f031.tar.gz volse-hubzilla-09a60774d746de57d6f9e479a1f6cf70c691f031.tar.bz2 volse-hubzilla-09a60774d746de57d6f9e479a1f6cf70c691f031.zip |
we can sign messages which are not from the primary location
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 35ce465d6..a09d1bd7b 100644 --- a/include/text.php +++ b/include/text.php @@ -2621,13 +2621,13 @@ function xchan_query(&$items, $abook = true, $effective_uid = 0) { if(count($arr)) { if($abook) { $chans = q("select * from xchan left join hubloc on hubloc_hash = xchan_hash left join abook on abook_xchan = xchan_hash and abook_channel = %d - where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_primary = 1", + where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_deleted = 0 order by hubloc_primary desc", intval($item['uid']) ); } else { $chans = q("select xchan.*,hubloc.* from xchan left join hubloc on hubloc_hash = xchan_hash - where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_primary = 1"); + where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_deleted = 0 order by hubloc_primary desc"); } $xchans = q("select * from xchan where xchan_hash in (" . protect_sprintf(implode(',',$arr)) . ") and xchan_network in ('rss','unknown', 'anon', 'token')"); if(! $chans) |