fix: mii reviewedAt property for time select and responsiveness for sort menus

also bypassCache profile url query param
This commit is contained in:
trafficlunar 2026-04-22 16:54:00 +01:00
parent af37b05ab1
commit 2209a17687
5 changed files with 16 additions and 5 deletions

View file

@ -72,7 +72,7 @@ export async function GET(request: NextRequest) {
...(!quarantined && !userId && { quarantined: false }),
// Time range
...(timeRange && {
createdAt: {
reviewedAt: {
gte: new Date(Date.now() - { day: 86400000, week: 604800000, month: 2592000000, year: 31536000000 }[timeRange]),
},
}),