Skip to content

Commit 88ec489

Browse files
committed
fix(files): Fix non-string values for activity rich object strings
Signed-off-by: provokateurin <[email protected]>
1 parent 4783459 commit 88ec489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files/lib/Activity/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ protected function getFile($parameter, ?IEvent $event = null): array {
323323
} elseif ($event !== null) {
324324
// Legacy from before ownCloud 8.2
325325
$path = $parameter;
326-
$id = $event->getObjectId();
326+
$id = (string)$event->getObjectId();
327327
} else {
328328
throw new UnknownActivityException('Could not generate file parameter');
329329
}
@@ -341,7 +341,7 @@ protected function getFile($parameter, ?IEvent $event = null): array {
341341

342342
return [
343343
'type' => 'file',
344-
'id' => $encryptionContainer->getId(),
344+
'id' => (string)$encryptionContainer->getId(),
345345
'name' => $encryptionContainer->getName(),
346346
'path' => $path,
347347
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $encryptionContainer->getId()]),

0 commit comments

Comments
 (0)