diff options
author | VirtuBox <contact@virtubox.net> | 2017-04-06 19:11:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-06 19:11:39 +0200 |
commit | c441208e29cc86cbf514851879bdaa9130351b22 (patch) | |
tree | f2553a71516f4c33db5d241fb46a1d84e1a3380c /app/services/notify_service.rb | |
parent | 28fb01c71aea96e66bc639917206f5472ca2d34f (diff) | |
parent | 5e6382891706199ade801cd6337069b7d6f307cb (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'app/services/notify_service.rb')
-rw-r--r-- | app/services/notify_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb index 24486f220..ffeee5fcf 100644 --- a/app/services/notify_service.rb +++ b/app/services/notify_service.rb @@ -50,7 +50,7 @@ class NotifyService < BaseService def create_notification @notification.save! return unless @notification.browserable? - FeedManager.instance.broadcast(@recipient.id, event: 'notification', payload: FeedManager.instance.inline_render(@recipient, 'api/v1/notifications/show', @notification)) + Redis.current.publish("timeline:#{@recipient.id}", Oj.dump(event: :notification, payload: InlineRenderer.render(@notification, @recipient, 'api/v1/notifications/show'))) end def send_email |