Merge pull request #51515 from nextcloud/backport/51512/stable31

[stable31] fix(comments): Fix activity rich subject parameters
This commit is contained in:
Joas Schilling 2025-03-17 21:11:09 +01:00 committed by GitHub
commit 13dc5e54a1
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]),