We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d284a7 commit 2e0e6f6Copy full SHA for 2e0e6f6
1 file changed
app/controllers/moderator_controller.rb
@@ -73,7 +73,7 @@ def user_vote_summary
73
74
def spammy_users
75
script = File.read(Rails.root.join('db/scripts/potential_spam_profiles.sql'))
76
- hours = { 'day' => 7, 'week' => 168, 'month' => 744 }
+ hours = { 'day' => 24, 'week' => 168, 'month' => 744 }
77
script = script.gsub('$HOURS', hours[params[:period]]&.to_s || '744')
78
user_ids = ApplicationRecord.connection.execute(script).to_a.flatten
79
@users = User.where(id: user_ids).limit(20)
0 commit comments