add widget tag

This commit is contained in:
chiu 2026-01-13 09:35:36 +00:00
parent e97c744422
commit dcdcf6da72
1 changed files with 1 additions and 0 deletions

View File

@ -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,