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