X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ebfdbc1ffacee695ca773f3b3c8af02bb41b8c1..ce99bfd9ac255cfaa1902f6c71fdf46c3a3ca706:/app/controllers/friendships_controller.rb diff --git a/app/controllers/friendships_controller.rb b/app/controllers/friendships_controller.rb index 034173e61..a983bec75 100644 --- a/app/controllers/friendships_controller.rb +++ b/app/controllers/friendships_controller.rb @@ -21,7 +21,7 @@ class FriendshipsController < ApplicationController flash[:warning] = t "friendships.make_friend.already_a_friend", :name => @new_friend.display_name elsif friendship.save flash[:notice] = t "friendships.make_friend.success", :name => @new_friend.display_name - Notifier.friend_notification(friendship).deliver_later + Notifier.friendship_notification(friendship).deliver_later else friendship.add_error(t("friendships.make_friend.failed", :name => @new_friend.display_name)) end