mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:32:08 +08:00
FIX: Don't show bots as post readers
This commit is contained in:
@ -8,6 +8,7 @@ class PostReadersController < ApplicationController
|
||||
ensure_can_see_readers!(post)
|
||||
|
||||
readers = User
|
||||
.real
|
||||
.where(staged: false)
|
||||
.where.not(id: post.user_id)
|
||||
.joins(:topic_users)
|
||||
|
Reference in New Issue
Block a user