From 2ab00c040eb514e1ca0012701dc28a30a6d26d84 Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 10 May 2022 12:53:37 +0800 Subject: [PATCH] Fix bug. --- app/models/bulletin.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/bulletin.rb b/app/models/bulletin.rb index 672ef27..e1c5b08 100644 --- a/app/models/bulletin.rb +++ b/app/models/bulletin.rb @@ -407,14 +407,12 @@ class Bulletin self.tags.each do |tag| if !tag_ids.include?(tag.id.to_s) tag_ids << tag.id.to_s - tag_names << {"name_translations" => tag.name_translations} end a["tags"] << {"name_translations" => tag.name_translations} end cat = self.category if (!category_ids.include?(cat.id.to_s) rescue false) category_ids << cat.id.to_s - category_titles << {"title_translations" => cat.title_translations} end a["category"] = {"title_translations" => (cat.title_translations rescue {})} self.bulletin_links.each do |bl|