From 82000fcc94c2290ab92b0302ab672cb566944396 Mon Sep 17 00:00:00 2001 From: WillNigel23 Date: Tue, 10 Sep 2024 04:54:24 +0800 Subject: [PATCH] 4300 - Duplicate owner profile links --- app/views/user/_user_profile.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/user/_user_profile.html.slim b/app/views/user/_user_profile.html.slim index f12578ee0c..1ee8a8cc2c 100644 --- a/app/views/user/_user_profile.html.slim +++ b/app/views/user/_user_profile.html.slim @@ -16,7 +16,7 @@ section.user-profile span =t('user.profile.login_and_password').html_safe .user-profile_stats -if user.staff? - -user.collections.each do |c| + -user.collections.uniq { |c| c.owner_user_id }.each do |c| -unless c.owner.staff? =link_to c.owner.display_name, user_profile_path(c.owner), target: '_blank', rel: 'nofollow' |