From f84a0646cbacd8be7b00cc0fbc58875ee1971ba5 Mon Sep 17 00:00:00 2001 From: Akmal Date: Sat, 6 Jul 2024 19:25:47 +0700 Subject: [PATCH] Skip query escape on url --- handlers/embed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/embed.go b/handlers/embed.go index 67da4f4..fa726bc 100644 --- a/handlers/embed.go +++ b/handlers/embed.go @@ -136,7 +136,7 @@ func Embed() fiber.Handler { sb.WriteString("/") sb.WriteString(strconv.Itoa(max(1, mediaNum))) viewsData.VideoURL = sb.String() - viewsData.OEmbedURL = c.BaseURL() + "/oembed?text=" + url.QueryEscape(viewsData.Description) + "&url=" + url.QueryEscape(viewsData.URL) + viewsData.OEmbedURL = c.BaseURL() + "/oembed?text=" + url.QueryEscape(viewsData.Description) + "&url=" + viewsData.URL } if direct {