This commit is contained in:
BoHung Chiu 2021-11-12 15:47:02 +08:00
parent 477821bb17
commit 9b905812cb
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ module AnnouncementsHelper
else
image_url = a.image.url
end
doc = Nokogiri::HTML(a.title)
title = doc.text.empty? ? 'no content' : doc.text
{
"bulletin_links" => links,
"bulletin_files" => files,