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-13 02:27:10 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2016-06-26 07:20:59 +0300
commit58a5a881cff98d6ac3752166d22b473149f94c0d (patch)
tree394f80dcfbc8b6550c6fd40f44dc5a11ac36215d /app/workers
parentae96b4bf559de9b5c6e94c006fab80938f0f4b27 (diff)
receive local
* Contact: auto-follow-back * Shareable: create share visibilities
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/receive_local.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/receive_local.rb b/app/workers/receive_local.rb
index cb04884c2..f02cb504e 100644
--- a/app/workers/receive_local.rb
+++ b/app/workers/receive_local.rb
@@ -4,7 +4,9 @@ module Workers
def perform(object_class_string, object_id, recipient_user_ids)
object = object_class_string.constantize.find(object_id)
- # TODO: create visibilities
+
+ object.receive(recipient_user_ids) if object.respond_to?(:receive)
+
NotificationService.new.notify(object, recipient_user_ids)
rescue ActiveRecord::RecordNotFound # Already deleted before the job could run
end