mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-20 11:39:14 +03:00
Ignore created_at filter when order is set
This commit is contained in:
parent
ab4bbe4aaa
commit
642b519eef
@ -123,7 +123,7 @@ function setupGhostApi({siteUrl = window.location.origin, apiUrl, apiKey}: {site
|
||||
},
|
||||
browse({page, postId, order}: {page: number, postId: string, order?: string}) {
|
||||
let filter = null;
|
||||
if (firstCommentCreatedAt) {
|
||||
if (firstCommentCreatedAt && !order) {
|
||||
filter = `created_at:<=${firstCommentCreatedAt}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user