Update CacheActorsRequest.php

Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>
pull/344/head
Emerson Kfuri 2019-01-17 15:48:01 -02:00 zatwierdzone przez emersonkfuri
rodzic 15ca69a6d0
commit 1713559ec9
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -220,9 +220,6 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
*/
public function getFromLocalAccount(string $account): Person {
$qb = $this->getCacheActorsSelectSql();
if (strrpos($account, '@')) {
$account = substr($account, 0, strrpos($account, '@'));
}
$this->limitToPreferredUsername($qb, $account);
$this->limitToLocal($qb, true);
$this->leftJoinCacheDocuments($qb, 'icon_id');