Merge pull request #51512 from nextcloud/fix/comments/activity-rich-subject-parameters

fix(comments): Fix activity rich subject parameters
This commit is contained in:
Kate 2025-03-17 10:35:02 +01:00 committed by GitHub
commit 6bd3f09c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,10 +174,13 @@ class Provider implements IProvider {
}
}
/**
* @return array<string, string>
*/
protected function generateFileParameter(int $id, string $path): array {
return [
'type' => 'file',
'id' => $id,
'id' => (string)$id,
'name' => basename($path),
'path' => $path,
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]),