mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
BUGFIX: eliminate drafts for system user
This commit is contained in:
parent
48790368a0
commit
7e1bd88c33
3 changed files with 5 additions and 2 deletions
|
@ -201,7 +201,7 @@ module Discourse
|
|||
user ||= User.admins.real.order(:id).first
|
||||
end
|
||||
|
||||
SYSTEM_USER_ID = -1
|
||||
SYSTEM_USER_ID = -1 unless defined? SYSTEM_USER_ID
|
||||
|
||||
def self.system_user
|
||||
User.find_by(id: SYSTEM_USER_ID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue