added the files this time
This commit is contained in:
parent
7254db5cbc
commit
82852db5ec
4 changed files with 31 additions and 1 deletions
10
app/models/jobs/mail_comment_on_post.rb
Normal file
10
app/models/jobs/mail_comment_on_post.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
module Jobs
|
||||
class MailCommentOnPost
|
||||
extend ResqueJobLogging
|
||||
@queue = :mail
|
||||
def self.perform(recipient_id, sender_id, comment)
|
||||
Notifier.comment_on_post(recipient_id, sender_id, comment).deliver
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
13
app/views/notifier/comment_on_post.html.haml
Normal file
13
app/views/notifier/comment_on_post.html.haml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%p
|
||||
= t('notifier.hello', :name => @receiver.profile.first_name)
|
||||
%p
|
||||
= "#{@sender.name} (#{@sender.diaspora_handle})"
|
||||
= t('.commented')
|
||||
|
||||
%br
|
||||
= link_to t('.sign_in'), status_message_url(@comment.post)
|
||||
|
||||
%br
|
||||
= t('notifier.love')
|
||||
%br
|
||||
= t('notifier.diaspora')
|
||||
7
app/views/notifier/comment_on_post.text.haml
Normal file
7
app/views/notifier/comment_on_post.text.haml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
= t('notifier.hello', :name => @receiver.profile.first_name)
|
||||
= "#{@sender.name} (#{@sender.diaspora_handle})"
|
||||
= t('notifier.comment_on_post.commented')
|
||||
|
||||
|
||||
= "#{t('notifier.love')} \n"
|
||||
= t('notifier.diaspora')
|
||||
|
|
@ -92,7 +92,7 @@ describe User do
|
|||
it 'removes posts upon disconnecting' do
|
||||
user.disconnect(user2.person)
|
||||
user.reload
|
||||
user.raw_visibNotification.notify(self, oble_posts.should_not include @status_message
|
||||
user.raw_visible_posts.should_not include @status_message
|
||||
end
|
||||
|
||||
it 'deletes a post if the noone links to it' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue