mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't return the last post we already have when paginating /posts (#30991)
This commit is contained in:
parent
9cc99ef6db
commit
59a6775848
@ -107,7 +107,7 @@ class PostsController < ApplicationController
|
||||
@use_canonical = true
|
||||
end
|
||||
|
||||
posts = posts.where("posts.id <= ?", last_post_id) if last_post_id
|
||||
posts = posts.where("posts.id < ?", last_post_id) if last_post_id
|
||||
|
||||
posts = posts.to_a
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user