aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r--lib/mauve/alert.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index 706b0e3..28079a2 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -401,12 +401,7 @@ module Mauve
#
# @return [Boolean] Showing if an alert has been sent.
def notify(at = Time.now)
- if self.alert_group.nil?
- logger.warn "Could not notify for #{self} since there are no matching alert groups"
- false
- else
- self.alert_group.notify(self, at)
- end
+ Server.notification_push([self, at])
end
# Acknowledge an alert