mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Blocked users need to be blocked
This commit is contained in:
parent
eb2a8e47b0
commit
b61cfd193f
5 changed files with 21 additions and 7 deletions
|
@ -626,11 +626,8 @@ class Contact
|
|||
*/
|
||||
public static function getPublicIdByUserId(int $uid)
|
||||
{
|
||||
$self = DBA::selectFirst('contact', ['url'], ['self' => true, 'uid' => $uid]);
|
||||
if (!DBA::isResult($self)) {
|
||||
return false;
|
||||
}
|
||||
return self::getIdForURL($self['url']);
|
||||
$self = self::selectFirstAccountUser(['pid'], ['self' => true, 'uid' => $uid]);
|
||||
return $self['pid'] ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue