Ignore created_at filter when order is set

This commit is contained in:
Ronald Langeveld 2024-10-03 10:46:58 +09:00
parent ab4bbe4aaa
commit 642b519eef

View File

@ -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}`;
}