add widget hashtag

This commit is contained in:
chiu 2026-01-09 01:53:24 +00:00
parent f280f1e5ec
commit e97c744422
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),
"orbithashtags" => (a.hashtags_for_frontend(link_to_show.split('/')[0...-1].join('/')) rescue []),
"postdate" => a.postdate, "postdate" => a.postdate,
"author" => author, "author" => author,
"link_to_show" => link_to_show+"\" #{(link_to_show[0] == '/' rescue true) ? '' : 'target="_blank"'} title=\"#{title}", "link_to_show" => link_to_show+"\" #{(link_to_show[0] == '/' rescue true) ? '' : 'target="_blank"'} title=\"#{title}",