From b26d251bfd70de3a2d1d6b1f78afee1d878f27ec Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Thu, 2 Jan 2025 18:45:00 +0100 Subject: [PATCH] fix video embed --- app/views/frontend/events/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/frontend/events/show.html.haml b/app/views/frontend/events/show.html.haml index 16abd94b..ea4a2d89 100644 --- a/app/views/frontend/events/show.html.haml +++ b/app/views/frontend/events/show.html.haml @@ -13,7 +13,7 @@ %meta{property: 'og:video:release_date', content: @event.release_date} %meta{property: 'og:description', content: @event.short_description} %meta{property: 'twitter:card', content: 'player'} - %meta{property: 'twitter:player', content: oembed_event_url(@event)} + %meta{property: 'twitter:player', content: oembed_event_url(slug: event.slug)} %meta{property: 'twitter:player:height', content: '480'} %meta{property: 'twitter:player:width', content: '854'} - @event.persons.each do |speaker| @@ -41,7 +41,7 @@ } }, "contentUrl": "#{@event.preferred_recording.filename}", - "embedUrl": "#{oembed_event_url(@event)}" + "embedUrl": "#{oembed_event_url(slug: event.slug)}" } = render partial: 'frontend/shared/folder_feeds', locals: { conference: @conference } != ""