Skip to content

Commit

Permalink
suppress website link using same rules as profile body links
Browse files Browse the repository at this point in the history
  • Loading branch information
cellio committed Jan 1, 2025
1 parent 45e1e26 commit 61bdc0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@
<div class="profile-text">
<p>
<% if @user.website.present? %>
<% unless !user_signed_in? && !@user.community_user.privilege?('unrestricted') %>
<span class="h-m-r-4">
<i class="fas fa-link"></i> <%= link_to @user.website_domain, @user.website, rel: 'nofollow',
'aria-label': "Visit website of #{rtl_safe_username(@user)} at #{@user.website_domain}" %>
<i class="fas fa-link"></i>
<%= link_to @user.website_domain, @user.website, rel: 'nofollow',
'aria-label': "Visit website of #{rtl_safe_username(@user)} at #{@user.website_domain}" %>
</span>
<% end %>
<% end %>
<% if @user.twitter.present? %>
<span class="h-m-r-4">
Expand Down

0 comments on commit 61bdc0e

Please sign in to comment.