From dcdcf6da72ae18f83e1cdb6a7753f075fc460b12 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Jan 2026 09:35:36 +0000 Subject: [PATCH] add widget tag --- app/helpers/announcements_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/announcements_helper.rb b/app/helpers/announcements_helper.rb index f96fcaa..050ecd7 100644 --- a/app/helpers/announcements_helper.rb +++ b/app/helpers/announcements_helper.rb @@ -40,6 +40,7 @@ module AnnouncementsHelper "statuses" => statuses, "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), + "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 []), "postdate" => a.postdate, "author" => author,