Skip to content

Commit d409db9

Browse files
committed
fixes #1038, show notification when video is ready
1 parent 61dae0d commit d409db9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/Models/VideosUserPerms.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ public static function setPermissions($eventType, $episode, $video)
117117
$perm->video_id = $video->id;
118118
$perm->perm = 'owner';
119119
$perm->store();
120-
121-
// notify user, that one of his videos is now available
122-
\PersonalNotifications::add(
123-
$user_id,
124-
\URLHelper::getURL('plugins.php/opencastv3/contents/index', [], true),
125-
sprintf(_('Das Video mit dem Titel "%s" wurde fertig verarbeitet.'), $episode->title),
126-
"opencast_" . $episode->identifier,
127-
\Icon::create('video'),
128-
false
129-
);
130120
}
121+
122+
// notify user, that one of his videos is now available
123+
\PersonalNotifications::add(
124+
$user_id,
125+
\URLHelper::getURL('plugins.php/opencastv3/contents/index', [], true),
126+
sprintf(_('Das Video mit dem Titel "%s" wurde fertig verarbeitet.'), $episode->title),
127+
"opencast_" . $episode->identifier,
128+
\Icon::create('video'),
129+
false
130+
);
131131
}
132132
}
133133

0 commit comments

Comments
 (0)