Use string interpolation instead of concatenation

This commit is contained in:
tracedgod 2024-04-28 00:04:30 -04:00
parent 6db4a46c5f
commit 5b11ca22d0

View file

@ -44,7 +44,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
url_faq = "https://github.com/iv-org/documentation/blob/master/docs/faq.md" url_faq = "https://github.com/iv-org/documentation/blob/master/docs/faq.md"
url_search_issues = "https://github.com/iv-org/invidious/issues" url_search_issues = "https://github.com/iv-org/invidious/issues"
url_search_issues += "?q=is:issue+is:open+" url_search_issues += "?q=is:issue+is:open+"
url_search_issues += URI.encode_www_form("[Bug] " + issue_title) url_search_issues += URI.encode_www_form("[Bug] #{issue_title}")
url_switch = "https://redirect.invidious.io" + env.request.resource url_switch = "https://redirect.invidious.io" + env.request.resource