summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-19 11:23:22 -0100
committerGitHub <noreply@github.com>2019-01-19 11:23:22 -0100
commit753a04fe90e0d563ba88147b6fa5d69906137c52 (patch)
tree590b74f7e47dc8ab21daa85047949022db38797d
parent59d21f99079c91d6ce9bee3dda329d16e91755c5 (diff)
parent73119cde8c15843c26265844b8fbd9cf460a17e8 (diff)
Merge pull request #350 from nextcloud/backport/344/alpha1
[alpha1] Failed to load more timeline entries
-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);
}