This commit is contained in:
BoHung Chiu 2022-05-10 12:53:37 +08:00
parent e961a3c26d
commit 2ab00c040e
1 changed files with 0 additions and 2 deletions

View File

@ -407,14 +407,12 @@ class Bulletin
self.tags.each do |tag| self.tags.each do |tag|
if !tag_ids.include?(tag.id.to_s) if !tag_ids.include?(tag.id.to_s)
tag_ids << tag.id.to_s tag_ids << tag.id.to_s
tag_names << {"name_translations" => tag.name_translations}
end end
a["tags"] << {"name_translations" => tag.name_translations} a["tags"] << {"name_translations" => tag.name_translations}
end end
cat = self.category cat = self.category
if (!category_ids.include?(cat.id.to_s) rescue false) if (!category_ids.include?(cat.id.to_s) rescue false)
category_ids << cat.id.to_s category_ids << cat.id.to_s
category_titles << {"title_translations" => cat.title_translations}
end end
a["category"] = {"title_translations" => (cat.title_translations rescue {})} a["category"] = {"title_translations" => (cat.title_translations rescue {})}
self.bulletin_links.each do |bl| self.bulletin_links.each do |bl|