From 0fe1e2d4a59b83e62a374a901be87d27c3ea0231 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 20 Nov 2025 11:37:29 +0000 Subject: [PATCH] add feed output orbithashtag --- app/models/bulletin.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/bulletin.rb b/app/models/bulletin.rb index ee6475a..52474e1 100644 --- a/app/models/bulletin.rb +++ b/app/models/bulletin.rb @@ -447,6 +447,9 @@ class Bulletin b["url"] = ("#{base_url}" + bf.file.url rescue "") a["bulletin_files"] << b end + a["orbithashtags"] = self.hashtags.map do |h| + {"name" => h.name.to_s} + end.compact.uniq rescue [] return a end def get_related_feeds