diff --git a/app/controllers/announcement_feeds_controller.rb b/app/controllers/announcement_feeds_controller.rb index 2e6b2db..098c8f7 100644 --- a/app/controllers/announcement_feeds_controller.rb +++ b/app/controllers/announcement_feeds_controller.rb @@ -85,8 +85,8 @@ class AnnouncementFeedsController < ApplicationController a["id"] = anns.uid a["title_translations"] = anns.title_translations a["subtitle_translations"] = anns.subtitle_translations - a["text_translations"]["en"] = smart_convertor(anns.text_translations["en"]) - a["text_translations"]["zh_tw"] = smart_convertor(anns.text_translations["zh_tw"]) + a["text_translations"]["en"] = smart_convertor(anns.text_translations["en"]) if !anns.text_translations["en"].blank? + a["text_translations"]["zh_tw"] = smart_convertor(anns.text_translations["zh_tw"]) if !anns.text_translations["zh_tw"].blank? a["postdate"] = anns.postdate a["image_description_translations"] = anns.image_description_translations a["image"] = {}