mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Add blocked users count to dashboard
This commit is contained in:
@ -64,6 +64,7 @@ class User < ActiveRecord::Base
|
||||
attr_accessor :notification_channel_position
|
||||
|
||||
scope :blocked, -> { where(blocked: true) } # no index
|
||||
scope :banned, -> { where('banned_till IS NOT NULL AND banned_till > ?', Time.zone.now) } # no index
|
||||
|
||||
module NewTopicDuration
|
||||
ALWAYS = -1
|
||||
|
Reference in New Issue
Block a user