Skip to content

Commit 4362786

Browse files
rakeknivenbackportbot[bot]
authored andcommitted
fix(notification): Notification in activity shows "Rich subject or a parameter for ..."
Signed-off-by: rakekniven <[email protected]>
1 parent 9eb3124 commit 4362786

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/lib/Activity/FavoriteProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected function setSubjects(IEvent $event, $subject) {
149149
}
150150
$parameter = [
151151
'type' => 'file',
152-
'id' => $subjectParams['id'],
152+
'id' => (string)$subjectParams['id'],
153153
'name' => basename($subjectParams['path']),
154154
'path' => trim($subjectParams['path'], '/'),
155155
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $subjectParams['id']]),

0 commit comments

Comments
 (0)