add external link for feed
This commit is contained in:
parent
945841a5fb
commit
de2eb5f0af
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue