]> git.openstreetmap.org Git - rails.git/commitdiff
Rename friendship_notification to follow_notification
authorTom Hughes <tom@compton.nu>
Fri, 17 Jan 2025 22:48:48 +0000 (22:48 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 17 Jan 2025 22:58:36 +0000 (22:58 +0000)
app/controllers/follows_controller.rb
app/mailers/user_mailer.rb
app/views/user_mailer/follow_notification.html.erb [moved from app/views/user_mailer/friendship_notification.html.erb with 100% similarity]
app/views/user_mailer/follow_notification.text.erb [moved from app/views/user_mailer/friendship_notification.text.erb with 100% similarity]
config/locales/en.yml

index 09a98f98f92314fbaf892a2049c12660dd1afefc..0d8ee272a77a78c8d499e093e632715611827fa6 100644 (file)
@@ -26,7 +26,7 @@ class FollowsController < ApplicationController
       flash[:error] = t ".limit_exceeded"
     elsif follow.save
       flash[:notice] = t ".success", :name => @friend.display_name
-      UserMailer.friendship_notification(follow).deliver_later
+      UserMailer.follow_notification(follow).deliver_later
     else
       follow.add_error(t(".failed", :name => @friend.display_name))
     end
index fea73c710cdaf1057526d653cfad4d6844fff972..6098162852039a0078c927b7fce5b717e681196c 100644 (file)
@@ -119,7 +119,7 @@ class UserMailer < ApplicationMailer
     end
   end
 
-  def friendship_notification(follow)
+  def follow_notification(follow)
     with_recipient_locale follow.following do
       @follow = follow
       @viewurl = user_url(@follow.follower)
index e887a71aadf2c4748a18a9ad2fc432d91d604721..510ee218c0acdc4fe924a55e43fe0dd75a7b339b 100644 (file)
@@ -1661,7 +1661,7 @@ en:
       header_html: "%{from_user} has sent you a message through OpenStreetMap with the subject %{subject}:"
       footer: "You can also read the message at %{readurl} and you can send a message to the author at %{replyurl}"
       footer_html: "You can also read the message at %{readurl} and you can send a message to the author at %{replyurl}"
-    friendship_notification:
+    follow_notification:
       hi: "Hi %{to_user},"
       subject: "[OpenStreetMap] %{user} followed you"
       followed_you: "%{user} is now following you on OpenStreetMap."