From a6383d0e439aab9848151dbaba49ff32f6389c82 Mon Sep 17 00:00:00 2001
From: Jorge Manrubia
Date: Fri, 3 Oct 2025 19:03:26 +0200
Subject: [PATCH] Don't prepend yourself to the list if you are not watching
---
app/helpers/users_helper.rb | 5 -----
app/views/cards/_messages.html.erb | 2 +-
2 files changed, 1 insertion(+), 6 deletions(-)
delete mode 100644 app/helpers/users_helper.rb
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
deleted file mode 100644
index 58b3e12d6..000000000
--- a/app/helpers/users_helper.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-module UsersHelper
- def prepend_current_user_to(users_scope)
- users_scope.to_a.prepend(Current.user).uniq
- end
-end
diff --git a/app/views/cards/_messages.html.erb b/app/views/cards/_messages.html.erb
index 30a606141..f6ab5a37d 100644
--- a/app/views/cards/_messages.html.erb
+++ b/app/views/cards/_messages.html.erb
@@ -11,7 +11,7 @@
- <% prepend_current_user_to(@card.watchers.without(User.system).alphabetically).each do |watcher| %>
+ <% @card.watchers.without(User.system).alphabetically.each do |watcher| %>
<%= avatar_tag watcher %>
<% end %>