Skip to content

Commit

Permalink
Skip query escape on url
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 6, 2024
1 parent 9cb1e64 commit f84a064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f84a064

Please sign in to comment.