Skip to content

Commit 6bd3f09

Browse files
Merge pull request #51512 from nextcloud/fix/comments/activity-rich-subject-parameters
fix(comments): Fix activity rich subject parameters
2 parents d905598 + f3bed2c commit 6bd3f09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/comments/lib/Activity/Provider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,13 @@ protected function parseMessage(IEvent $event): void {
174174
}
175175
}
176176

177+
/**
178+
* @return array<string, string>
179+
*/
177180
protected function generateFileParameter(int $id, string $path): array {
178181
return [
179182
'type' => 'file',
180-
'id' => $id,
183+
'id' => (string)$id,
181184
'name' => basename($path),
182185
'path' => $path,
183186
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]),

0 commit comments

Comments
 (0)