summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-18 09:03:20 -0100
committerGitHub <noreply@github.com>2019-01-18 09:03:20 -0100
commit83dc3bea01ad18dace1140559226f9f6f155a383 (patch)
tree94199a86677bdfceacd36ae2088ac0df031eca74 /lib/Service
parent0df7417d62d600554c3ab5f630e127a6c7f9b31d (diff)
parent1713559ec9ca48ee6f6145b3bf16636b1a52585e (diff)
Merge pull request #344 from emersonkfuri/emersonkfuri-patch-1
Failed to load more timeline entries
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/CacheActorService.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/CacheActorService.php b/lib/Service/CacheActorService.php
index d4e4473f..1030f699 100644
--- a/lib/Service/CacheActorService.php
+++ b/lib/Service/CacheActorService.php
@@ -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);
}