diff --git a/app/views/public/shared/_conference.json.jbuilder b/app/views/public/shared/_conference.json.jbuilder index e2bf3e85..76e42f79 100644 --- a/app/views/public/shared/_conference.json.jbuilder +++ b/app/views/public/shared/_conference.json.jbuilder @@ -3,4 +3,4 @@ json.webgen_location conference.slug json.logo_url conference.logo_url json.images_url conference.get_images_url json.recordings_url conference.get_recordings_url -json.url public_conference_url(conference, format: :json) +json.url public_conference_url(id: conference.acronym, format: :json) diff --git a/app/views/public/shared/_event.json.jbuilder b/app/views/public/shared/_event.json.jbuilder index 243ffd32..6760d9ab 100644 --- a/app/views/public/shared/_event.json.jbuilder +++ b/app/views/public/shared/_event.json.jbuilder @@ -1,12 +1,13 @@ -json.extract! event, :guid, :title, :subtitle, :slug, :link, :description, :original_language, :persons, :tags, :view_count, :promoted, :metadata, :date, :release_date, :updated_at +json.extract! event, :guid, :title, :subtitle, :slug, :link, :description, :original_language, :persons, :tags, :view_count, :promoted, :date, :release_date, :updated_at json.length event.duration json.duration event.duration json.thumb_url event.get_thumb_url json.poster_url event.get_poster_url json.frontend_link frontend_event_url(slug: event.slug) -json.url public_event_url(event, format: :json) -json.conference_url public_conference_url(event.conference, format: :json) +json.url public_event_url(id: event.guid, format: :json) +json.conference_url public_conference_url(id: event.conference.acronym, format: :json) json.related(event.metadata['related']) do |id, weight| json.event_id id + json.event_guid Event.find(id)&.guid json.weight weight end diff --git a/app/views/public/shared/_recording.json.jbuilder b/app/views/public/shared/_recording.json.jbuilder index 4895f4a5..0f3016e1 100644 --- a/app/views/public/shared/_recording.json.jbuilder +++ b/app/views/public/shared/_recording.json.jbuilder @@ -1,5 +1,5 @@ json.extract! recording, :size, :length, :mime_type, :language, :filename, :state, :folder, :high_quality, :width, :height, :updated_at json.recording_url recording.get_recording_url json.url public_recording_url(recording, format: :json) -json.event_url public_event_url(recording.event, format: :json) -json.conference_url public_conference_url(recording.conference, format: :json) +json.event_url public_event_url(id: recording.event.guid, format: :json) +json.conference_url public_conference_url(id: recording.conference.acronym, format: :json)