X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f32aea6d1429ef55b7e5ec60bf83576cf76d85ed..18fd80ebb77b75622fb60bfa5ec64878a0c7bdc4:/app/mailers/user_mailer.rb diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 1dd13fb2d..609816285 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -119,16 +119,16 @@ class UserMailer < ApplicationMailer end end - def friendship_notification(friendship) - with_recipient_locale friendship.befriendee do - @friendship = friendship - @viewurl = user_url(@friendship.befriender) - @friendurl = make_friend_url(@friendship.befriender) - @author = @friendship.befriender.display_name - - attach_user_avatar(@friendship.befriender) - mail :to => friendship.befriendee.email, - :subject => t(".subject", :user => friendship.befriender.display_name) + def follow_notification(follow) + with_recipient_locale follow.following do + @follow = follow + @viewurl = user_url(@follow.follower) + @followurl = follow_url(@follow.follower) + @author = @follow.follower.display_name + + attach_user_avatar(@follow.follower) + mail :to => follow.following.email, + :subject => t(".subject", :user => follow.follower.display_name) end end