From 5955b3a72f8d242a304ba0f7890337800f0c5d2c Mon Sep 17 00:00:00 2001 From: Nadim Akhtar <48604201+nadimakhtar97@users.noreply.github.com> Date: Tue, 22 Sep 2020 14:28:01 +0530 Subject: [PATCH] add filter to remove spammed accountfrom tag contributors listing (#8418) --- app/models/tag.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/tag.rb b/app/models/tag.rb index afdecdba084..fb6464d0737 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -74,6 +74,7 @@ def self.contributors(tagname) end uids = uids.uniq User.where(id: uids) + .where(status: [1, 4]) end def self.contributor_count(tagname)