mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 06:03:46 +08:00
DEV: Use Discourse::SYSTEM_USER_ID in fixtures/009_users (#24743)
I couldn't find where we created the system user and this is why -- everywhere else in the app we reference SYSTEM_USER_ID but here.
This commit is contained in:
@ -474,7 +474,7 @@ class Group < ActiveRecord::Base
|
||||
group_users
|
||||
.pluck(:user_id, :notification_level)
|
||||
.each do |user_id, notification_level|
|
||||
next if user_id == -1
|
||||
next if user_id == Discourse::SYSTEM_USER_ID
|
||||
next if user_id == topic.user_id
|
||||
next if ignore_existing && TopicUser.where(user_id: user_id, topic_id: topic.id).exists?
|
||||
|
||||
|
Reference in New Issue
Block a user