From 4ae86e6ac360180024fad5642a3578871e0d4ef6 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Sat, 24 Aug 2024 18:05:35 -0400 Subject: [PATCH] Fix Ameba error --- src/invidious/routes/api/v1/search.cr | 4 ++-- src/invidious/routes/search.cr | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/invidious/routes/api/v1/search.cr b/src/invidious/routes/api/v1/search.cr index 1777060a..8c787a67 100644 --- a/src/invidious/routes/api/v1/search.cr +++ b/src/invidious/routes/api/v1/search.cr @@ -69,13 +69,13 @@ module Invidious::Routes::API::V1::Search env.response.content_type = "application/json" begin - hashtagPage = Invidious::Hashtag.fetch(hashtag, page, region) + hashtag_page = Invidious::Hashtag.fetch(hashtag, page, region) rescue ex return error_json(400, ex) end JSON.build do |json| - hashtagPage.to_json(locale, json) + hashtag_page.to_json(locale, json) end end end diff --git a/src/invidious/routes/search.cr b/src/invidious/routes/search.cr index aa06c191..da6ce18d 100644 --- a/src/invidious/routes/search.cr +++ b/src/invidious/routes/search.cr @@ -101,8 +101,8 @@ module Invidious::Routes::Search end begin - hashtagPage = Invidious::Hashtag.fetch(hashtag, page) - items = hashtagPage.videos + hashtag_page = Invidious::Hashtag.fetch(hashtag, page) + items = hashtag_page.videos rescue ex return error_template(500, ex) end @@ -112,7 +112,7 @@ module Invidious::Routes::Search page_nav_html = Frontend::Pagination.nav_numeric(locale, base_url: "/hashtag/#{hashtag_encoded}", current_page: page, - show_next: hashtagPage.has_next_continuation + show_next: hashtag_page.has_next_continuation ) templated "hashtag"