Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2016-05-05 17:15:55 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2016-06-26 07:20:59 +0300
commitebfb0aa884dbcfbd09cc6ec32271a583dd452f00 (patch)
tree7d4a4f76d2f3a7ada17ff4b08980dce4df246a31 /app/workers
parent97f4b0c2e424c8e00665e54312ae9a137bbea0ee (diff)
create NotificationService: send notifications after receive
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/receive_local.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/receive_local.rb b/app/workers/receive_local.rb
index 409d33d4f..cb04884c2 100644
--- a/app/workers/receive_local.rb
+++ b/app/workers/receive_local.rb
@@ -5,7 +5,7 @@ module Workers
def perform(object_class_string, object_id, recipient_user_ids)
object = object_class_string.constantize.find(object_id)
# TODO: create visibilities
- # TODO: send notifications
+ NotificationService.new.notify(object, recipient_user_ids)
rescue ActiveRecord::RecordNotFound # Already deleted before the job could run
end
end