mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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