small fix for feeds

This commit is contained in:
Harry Bomrah 2016-03-07 18:19:56 +08:00
parent 0b7dedcaa2
commit 8171fddea6
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class AnnouncementFeedsController < ApplicationController
a["id"] = anns.uid a["id"] = anns.uid
a["title_translations"] = anns.title_translations a["title_translations"] = anns.title_translations
a["subtitle_translations"] = anns.subtitle_translations a["subtitle_translations"] = anns.subtitle_translations
a["text_translations"] = {}
a["text_translations"]["en"] = smart_convertor(anns.text_translations["en"]) if !anns.text_translations["en"].blank? 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["text_translations"]["zh_tw"] = smart_convertor(anns.text_translations["zh_tw"]) if !anns.text_translations["zh_tw"].blank?
a["postdate"] = anns.postdate a["postdate"] = anns.postdate