Skip to content

Commit

Permalink
Show correct author in video, fix elan-ev#913
Browse files Browse the repository at this point in the history
Set the OC presenter value as author because oc treats the dcc creator field as presenter.
  • Loading branch information
Dennis Benz committed Feb 24, 2024
1 parent 0ce5a87 commit a0f93f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cronjobs/opencast_worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function execute($last_result, $parameters = array())
$video->duration = $event->duration;

$video->created = date('Y-m-d H:i:s', strtotime($event->created));
$video->author = $event->creator;
$video->author = implode(', ', $event->presenter);
$video->contributors = implode(', ', $event->contributor);

$video->store();
Expand Down
4 changes: 2 additions & 2 deletions vueapp/components/Videos/VideoUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export default {
selectedWorkflow: false,
fileUploadError: false,
upload: {
creator: this.currentUser.username,
contributor: this.currentUser.fullname,
creator: this.currentUser.fullname,
contributor: '',
playlist_token: null,
recordDate: format(new Date(), "yyyy-MM-dd'T'HH:mm", { locale: de}),
subject: this.$gettext('Medienupload, Stud.IP')
Expand Down

0 comments on commit a0f93f4

Please sign in to comment.