Skip to content

Commit

Permalink
Dav/FacePhoto: Fix metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed May 17, 2023
1 parent e1fb5a5 commit 0fdb558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dav/Faces/FacePhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function getLastModified() {
public function getMetadata(): string {
$file = $this->getFile();
$sizeMetadata = $this->metadataManager->fetchMetadataFor('size', [$file->getId()])[$file->getId()];
return $sizeMetadata->getValue();
return json_encode($sizeMetadata->getDecodedValue());
}

public function hasPreview(): bool {
Expand Down

0 comments on commit 0fdb558

Please sign in to comment.