summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmerson Kfuri <emersonkfuri@gmail.com>2019-01-17 15:48:01 -0200
committerBackportbot <backportbot-noreply@rullzer.com>2019-01-18 10:03:35 +0000
commit73119cde8c15843c26265844b8fbd9cf460a17e8 (patch)
treef76a5b91284141f70ab2a70914bc717c676a1b43
parent3356464707b017a7351f1592bdcc8497687eaf58 (diff)
Update CacheActorsRequest.php
Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>
-rw-r--r--lib/Db/CacheActorsRequest.php3
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');