diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-01-18 15:55:10 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-01-19 11:14:38 -0100 |
commit | 524c7aa14174c3d6c063b56fe79eeffa03de688d (patch) | |
tree | 9040ce9e8414ab1305845f5f4d5b4ab0f0fd1035 /lib/Service | |
parent | 898993a67d7c17da3f19be34a6d9824e8c6a5489 (diff) |
save/update
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/DocumentService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index c250d0e3..e2579b95 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -238,14 +238,14 @@ class DocumentService { $icon->setMediaType(''); $icon->setLocalCopy('avatar'); - $this->cacheDocumentsRequest->deleteByUrl($icon->getUrl()); - $this->cacheDocumentsRequest->save($icon); + $interface = AP::$activityPub->getInterfaceFromType(Image::TYPE); + $interface->save($icon); $actor->setAvatarVersion($versionCurrent); $this->actorRequest->update($actor); } else { try { - $icon = $this->cacheDocumentsRequest->getBySource($url); + $icon = $this->cacheDocumentsRequest->getByUrl($url); } catch (CacheDocumentDoesNotExistException $e) { return ''; } |