Zot/Finger: ignore deleted hublocs

This commit is contained in:
zotlabs 2018-08-21 21:38:10 -07:00
parent 8bf1e3a944
commit 42c4a0da51
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class Finger {
$r = q("select xchan.*, hubloc.* from xchan $r = q("select xchan.*, hubloc.* from xchan
left join hubloc on xchan_hash = hubloc_hash left join hubloc on xchan_hash = hubloc_hash
where xchan_addr = '%s' and hubloc_primary = 1 limit 1", where xchan_addr = '%s' and hubloc_primary = 1 and hubloc_deleted = 0 limit 1",
dbesc($xchan_addr) dbesc($xchan_addr)
); );

View File

@ -370,7 +370,7 @@ function permissions_sql($owner_id, $remote_observer = null, $table = '') {
} }
/** /**
* @brief Creates an addiontal SQL where statement to check permissions for an item. * @brief Creates an additional SQL where statement to check permissions for an item.
* *
* @param int $owner_id * @param int $owner_id
* @param bool $remote_observer (optional) use current observer if unset * @param bool $remote_observer (optional) use current observer if unset