diff options
-rw-r--r-- | lib/Db/CacheActorsRequest.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php index 7051dfb3..82a2f5de 100644 --- a/lib/Db/CacheActorsRequest.php +++ b/lib/Db/CacheActorsRequest.php @@ -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'); |