diaspora/app/models/notifications/started_sharing.rb
cmrd Senya a3f208c380
Notifications and search page backend updates
Updates introduce support for preloading contacts to Gon in order
to support client-side rendering of aspect membership dropdown box.
2016-08-08 17:21:38 +03:00

20 lines
447 B
Ruby

module Notifications
class StartedSharing < Notification
def mail_job
Workers::Mail::StartedSharing
end
def popup_translation_key
"notifications.started_sharing"
end
def self.notify(contact, _recipient_user_ids)
sender = contact.person
create_notification(contact.user_id, sender, sender).email_the_user(sender, sender)
end
def contact
recipient.contact_for(target)
end
end
end