added the files this time

This commit is contained in:
zhitomirskiyi 2011-01-05 15:04:28 -08:00
parent 7254db5cbc
commit 82852db5ec
4 changed files with 31 additions and 1 deletions

View 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

View 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')

View 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')

View file

@ -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