kopia lustrzana https://github.com/nextcloud/social
Always use $account as local account (suppress @instance)
Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>pull/344/head
rodzic
b353704548
commit
15ca69a6d0
|
@ -166,6 +166,9 @@ class CacheActorService {
|
|||
* @throws CacheActorDoesNotExistException
|
||||
*/
|
||||
public function getFromLocalAccount(string $account): Person {
|
||||
if (strrpos($account, '@')) {
|
||||
$account = substr($account, 0, strrpos($account, '@'));
|
||||
}
|
||||
return $this->cacheActorsRequest->getFromLocalAccount($account);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue