<p></p>
<p><b>@tomhughes</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5261#discussion_r1801675659">config/routes.rb</a>:</p>
<pre style='color:#555'>> @@ -280,8 +280,8 @@
resource :profile, :only => [:edit, :update]
# friendships
- match "/user/:display_name/make_friend" => "friendships#make_friend", :via => [:get, :post], :as => "make_friend"
- match "/user/:display_name/remove_friend" => "friendships#remove_friend", :via => [:get, :post], :as => "remove_friend"
+ match "/user/:display_name/follow_user" => "friendships#follow_user", :via => [:get, :post], :as => "follow_user"
+ match "/user/:display_name/unfollow_user" => "friendships#unfollow_user", :via => [:get, :post], :as => "unfollow_user"
</pre>
<p dir="auto">I think the URL here could just be <code class="notranslate">/follow</code> and <code class="notranslate">/unfollow</code> and we don't really need the <code class="notranslate">_user</code> suffix? Possibly the actions should be <code class="notranslate">create</code> and <code class="notranslate">destroy</code> though? Probably the controller should be renamed to though I'm not sure what to...</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5261#discussion_r1801677573">app/views/dashboards/show.html.erb</a>:</p>
<pre style='color:#555'>> </ul>
</nav>
<div>
- <%= render :partial => "contact", :collection => friends, :locals => { :type => "friend" } %>
+ <%= render :partial => "contact", :collection => friends, :locals => { :type => "followed user" } %>
</pre>
<p dir="auto">This is purely internal, and not user visible, but a simple <code class="notranslate">followed</code> probably suffices as a type?</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5261#discussion_r1801680365">config/locales/en.yml</a>:</p>
<pre style='color:#555'>> @@ -1603,12 +1603,12 @@ en:
footer_html: "You can also read the message at %{readurl} and you can send a message to the author at %{replyurl}"
friendship_notification:
hi: "Hi %{to_user},"
- subject: "[OpenStreetMap] %{user} added you as a friend"
- had_added_you: "%{user} has added you as a friend on OpenStreetMap."
+ subject: "[OpenStreetMap] %{user} followed you"
+ had_followed_you: "%{user} has followed you on OpenStreetMap."
</pre>
<p dir="auto">I'm not sure why this key has a <code class="notranslate">had_</code> prefix but it was always incorrect so I'd suggest just dropping it and using <code class="notranslate">followed_you</code>.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5261#discussion_r1801678902">config/locales/en.yml</a>:</p>
<pre style='color:#555'>> @@ -91,7 +91,7 @@ en:
support_url: Support URL
allow_read_prefs: read their user preferences
allow_write_prefs: modify their user preferences
- allow_write_diary: create diary entries, comments and make friends
+ allow_write_diary: create diary entries, comments and follow users
</pre>
<p dir="auto">Agreed as that is never used and there's no good reason to include that Id just drop it from the comment and if we ever want a permission for managing follows we can add that separately.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5261#pullrequestreview-2370177042">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJKFFOGSN3JWKAHBR3Z3VKCXAVCNFSM6AAAAABP6QXVRWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNZQGE3TOMBUGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKAVEURKFXMH75XRP3Z3VKCXA5CNFSM6AAAAABP6QXVRWWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTUNIYEBE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5261/review/2370177042</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5261#pullrequestreview-2370177042",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5261#pullrequestreview-2370177042",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>