mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:02:45 +08:00
DEV: '= true' is not necessary
This commit is contained in:
parent
98b600f1e1
commit
d0bb6314c6
|
@ -15,7 +15,7 @@ class PostReadersController < ApplicationController
|
||||||
.where.not(topic_users: { last_read_post_number: nil })
|
.where.not(topic_users: { last_read_post_number: nil })
|
||||||
.where('topic_users.topic_id = ? AND topic_users.last_read_post_number >= ?', post.topic_id, post.post_number)
|
.where('topic_users.topic_id = ? AND topic_users.last_read_post_number >= ?', post.topic_id, post.post_number)
|
||||||
|
|
||||||
readers = readers.where('admin = true OR moderator = true') if post.whisper?
|
readers = readers.where('admin OR moderator') if post.whisper?
|
||||||
|
|
||||||
readers = readers.map do |r|
|
readers = readers.map do |r|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user