Zot/Finger: ignore deleted hublocs
This commit is contained in:
parent
8bf1e3a944
commit
42c4a0da51
@ -55,7 +55,7 @@ class Finger {
|
||||
|
||||
$r = q("select xchan.*, hubloc.* from xchan
|
||||
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)
|
||||
);
|
||||
|
||||
|
@ -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 bool $remote_observer (optional) use current observer if unset
|
||||
|
Reference in New Issue
Block a user