diff --git a/app/controllers/admin/feedback_messages_controller.rb b/app/controllers/admin/feedback_messages_controller.rb index d97e12d8d..27a51d33d 100644 --- a/app/controllers/admin/feedback_messages_controller.rb +++ b/app/controllers/admin/feedback_messages_controller.rb @@ -13,13 +13,6 @@ module Admin @email_messages = EmailMessage.find_for_reports(@feedback_messages) - @possible_spam_users = User.registered.where("length(name) > ?", 30) - .where("created_at > ?", 48.hours.ago) - .order(created_at: :desc) - .select(:username, :name, :id) - .where.not("username LIKE ?", "%spam_%") - .limit(150) - @vomits = get_vomits end diff --git a/app/views/admin/feedback_messages/_potential_spam_users.html.erb b/app/views/admin/feedback_messages/_potential_spam_users.html.erb deleted file mode 100644 index f0961a5c6..000000000 --- a/app/views/admin/feedback_messages/_potential_spam_users.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -
-
-
-

Possible Spam/Abuse Users

- -
-
-
- <% @possible_spam_users.each do |user| %> -
- @<%= user.username %> - <%= user.name %> -
- <%= link_to "Admin User", admin_user_path(user.id), class: "btn btn-secondary btn-sm" %> - <%= link_to "Destructive Actions", admin_user_path(user.id), class: "btn btn-danger btn-sm" %> -
-
- <% end %> -
-
-
-
diff --git a/app/views/admin/feedback_messages/index.html.erb b/app/views/admin/feedback_messages/index.html.erb index 83252b8a1..af3b39324 100644 --- a/app/views/admin/feedback_messages/index.html.erb +++ b/app/views/admin/feedback_messages/index.html.erb @@ -3,8 +3,6 @@

Suspicious activity

- <%= render "potential_spam_users" %> - <%= render "abuse_reports" %>