Skip to content

Commit

Permalink
Merge pull request #9957 from DavidKang/fix-rss-token
Browse files Browse the repository at this point in the history
Fix rss notifications creation
  • Loading branch information
hennevogel committed Jul 27, 2020
2 parents 03804ba + e491145 commit d9ea5de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/app/services/notification_service/notifier.rb
Expand Up @@ -41,8 +41,7 @@ def create_notification_per_subscription(subscription, channel)
end

def create_notification?(subscriber, channel)
return false if subscriber&.away?
return false if channel == :rss && !subscriber&.rss_token
return false if subscriber.nil? || subscriber.away? || (channel == :rss && !subscriber.try(:rss_token))
return false unless notifiable_exists?

true
Expand Down

0 comments on commit d9ea5de

Please sign in to comment.