From eeeff9ad6b05fe9f61115ce5b9bbae96b0a3fca8 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 9 Apr 2021 18:10:15 +0800 Subject: [PATCH] Fix bug. --- app/controllers/announcements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 607eb2c..a95a659 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -72,7 +72,7 @@ class AnnouncementsController < ApplicationController if (params['category'] != page.categories rescue true) @annc_page_title = Category.find(Array(params['category']).first).title rescue nil end - if (params["tags"] != page.tags rescue true) + if (params["tags"] != page.tags && params["tags"].count == 1 rescue true) @annc_page_title = Tag.find(Array(params['tags']).first).name rescue nil end {