add external link for feed

This commit is contained in:
chiu 2021-09-15 23:55:31 +08:00
parent 945841a5fb
commit de2eb5f0af
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class BulletinFeed
a["bulletin_links"] = [] a["bulletin_links"] = []
a["bulletin_files"] = [] a["bulletin_files"] = []
a["bulletin_carousel_images"] = anns.bulletin_carousel_images.map{|image| {"src"=>"#{base_url}" + image.file.url,"description"=>image.description.to_s,"description_text"=>image.description_text }} a["bulletin_carousel_images"] = anns.bulletin_carousel_images.map{|image| {"src"=>"#{base_url}" + image.file.url,"description"=>image.description.to_s,"description_text"=>image.description_text }}
a["external_link"] = anns["is_external_link"] ? anns.external_link : nil
anns.tags.each do |tag| anns.tags.each do |tag|
if !tag_ids.include?(tag.id.to_s) if !tag_ids.include?(tag.id.to_s)
tag_ids << tag.id.to_s tag_ids << tag.id.to_s