From 4e0563a8fe77c126b04287acbb75731802cb9153 Mon Sep 17 00:00:00 2001 From: Jan Cernik <66427541+jancernik@users.noreply.github.com> Date: Thu, 4 May 2023 07:54:00 -0300 Subject: [PATCH] FIX: Remove double escaped Vimeo titles (#21368) og_data is already escaped --- .../discourse-lazy-videos/lib/lazy-videos/lazy_vimeo.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/discourse-lazy-videos/lib/lazy-videos/lazy_vimeo.rb b/plugins/discourse-lazy-videos/lib/lazy-videos/lazy_vimeo.rb index 95a6684018b..dfa6152f9ed 100644 --- a/plugins/discourse-lazy-videos/lib/lazy-videos/lazy_vimeo.rb +++ b/plugins/discourse-lazy-videos/lib/lazy-videos/lazy_vimeo.rb @@ -19,18 +19,15 @@ class Onebox::Engine::VimeoOnebox iframe_id = iframe_src.sub("https://player.vimeo.com/video/", "") end - thumbnail_url = get_opengraph.image - escaped_title = ERB::Util.html_escape(og_data.title) - <<~HTML
HTML