mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Remove useless assignment in TopicView#filter_posts_paged
. (#14618)
Assignment is already done in `TopicView#filter_posts_by_ids`
This commit is contained in:

committed by
GitHub

parent
6ad76520b8
commit
baae453012
@ -346,7 +346,7 @@ class TopicView
|
||||
# Sometimes we don't care about the OP, for example when embedding comments
|
||||
min = 1 if min == 0 && @exclude_first
|
||||
|
||||
@posts = filter_posts_by_ids(
|
||||
filter_posts_by_ids(
|
||||
@filtered_posts.order(:sort_order)
|
||||
.offset(min)
|
||||
.limit(@limit)
|
||||
|
Reference in New Issue
Block a user