small fix for urls

This commit is contained in:
harrybomrah committed 2016-03-07 18:11:58 +08:00
1 parent a8b35baa6f
commit 0b7dedcaa2
1 file changed
+2 -2
@@ -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"] = {}