diff --git a/backend/app/models/user.rb b/backend/app/models/user.rb index d89acc4b8..800f41d8e 100644 --- a/backend/app/models/user.rb +++ b/backend/app/models/user.rb @@ -70,7 +70,6 @@ def reasons_for_notifications if broadcasts_created_since_last_login.count >= 5 reasons << :recently_created_broadcasts end - #check to see if current_user has impressions first, current_user can't be detected distributed_sum = self.impressions.to_a.sum {|i| i[:amount].to_f } if self.impressions.to_a.any? {|r| r[:response] == 'positive'} && distributed_sum == 0 reasons << :no_given_amount_for_supported_broadcasts