add widget tag
This commit is contained in:
parent
e97c744422
commit
dcdcf6da72
|
|
@ -40,6 +40,7 @@ module AnnouncementsHelper
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
"category" => (a.category.title rescue ""),
|
"category" => (a.category.title rescue ""),
|
||||||
"tag_ids" => (set_tag_ids.nil? ? (a.tag_ids.map{|id| id.to_s}.to_s.gsub('"',"'") rescue '[]') : set_tag_ids),
|
"tag_ids" => (set_tag_ids.nil? ? (a.tag_ids.map{|id| id.to_s}.to_s.gsub('"',"'") rescue '[]') : set_tag_ids),
|
||||||
|
"widget_tags" => a.tags_for_frontend(link_to_show.to_s.split('/')[0...-1].join('/')).to_s,
|
||||||
"orbithashtags" => (a.hashtags_for_frontend(link_to_show.split('/')[0...-1].join('/')) rescue []),
|
"orbithashtags" => (a.hashtags_for_frontend(link_to_show.split('/')[0...-1].join('/')) rescue []),
|
||||||
"postdate" => a.postdate,
|
"postdate" => a.postdate,
|
||||||
"author" => author,
|
"author" => author,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue