From 10f7e57270aefc457a46ecb474f6296fd117326a Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 23 May 2022 13:23:37 +0800 Subject: [PATCH] Fix bug. --- app/models/bulletin.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/bulletin.rb b/app/models/bulletin.rb index a720094..b173c2c 100644 --- a/app/models/bulletin.rb +++ b/app/models/bulletin.rb @@ -442,6 +442,8 @@ class Bulletin else type = 'create' end + elsif self.is_hidden + return [] end related_feeds = self.get_related_feeds.select{|feed| feed.remote_urls.count != 0} if related_feeds.count != 0