summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authoremersonkfuri <emersonkfuri@gmail.com>2019-01-17 15:35:04 -0200
committeremersonkfuri <emersonkfuri@gmail.com>2019-01-17 15:35:04 -0200
commit15ca69a6d04e68c0291c994c6d1b0ec84000917c (patch)
treeeb39dac8913d9bd2583b57fff1c22c6488491e6c /lib/Service
parentb353704548f36c409a01bd2444130f1ce1bc8873 (diff)
Always use $account as local account (suppress @instance)
Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>
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);
}