From 1374da35dad8c046b91befc56674cc1a1f7535f4 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 11 Feb 2017 15:29:31 -0500 Subject: [PATCH] Update notification_service.rb --- app/services/notification_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index fa429f2e..b140f7f8 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -35,7 +35,7 @@ class NotificationService body = renderer.render(template: settings[:template], locals: { entity: entity, event: event }, layout: false) follows.each{|follow| # this handles email and in-app notifications, in the future, include push - follow.user.notify(settings[:subject], body, event, false, event_type, (follow.user.emails_allowed && follow.email), event.user) + follow.user.notify(settings[:subject], body, event, false, event_type, follow.user.emails_allowed, event.user) # push could be handled with Actioncable to send transient notifications to the UI # the receipt from the notify call could be used to link to the full notification }