This commit is contained in:
BoHung Chiu 2021-07-14 12:56:28 +08:00
parent aec902e964
commit dc9c36711d
1 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class AnnouncementFeedsController < ApplicationController
category_ids << cat.id.to_s
category_titles << {"title_translations" => cat.title_translations}
end
a["category"] = {"title_translations" => cat.title_translations}
a["category"] = {"title_translations" => (cat.title_translations rescue {})}
anns.bulletin_links.each do |bl|
b = {}
b["url"] = bl.url
@ -167,7 +167,8 @@ class AnnouncementFeedsController < ApplicationController
end
{
"announcements" => all_anns,
"tags" => tag_names
"tags" => tag_names,
"categories" => category_titles
}
end
end