FIX: only fetch from real users

This commit is contained in:
jjaffeux 2020-08-11 08:51:43 +02:00
parent e3ee906f3c
commit d34dda6526
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ module DiscoursePostEvent
end
def self.extract_uniq_usernames(groups)
User.where(
User.real.where(
id: GroupUser.where(
group_id: Group.where(name: groups).select(:id)
).select(:user_id)