Always use $account as local account (suppress @instance)

Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>
pull/344/head
emersonkfuri 2019-01-17 15:35:04 -02:00
rodzic b353704548
commit 15ca69a6d0
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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);
}