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