fix: exclude current entry when mark above as read

This commit is contained in:
Stephen Zhou 2025-04-29 11:03:19 +08:00
parent 0b114dc9fe
commit 31ad3373d5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ export const useRegisterEntryCommands = () => {
label: t("entry_actions.mark_above_as_read"),
run: ({ publishedAt }: { publishedAt: string }) => {
return markAllByRoute({
startTime: new Date(publishedAt).getTime(),
startTime: new Date(publishedAt).getTime() + 1,
endTime: Date.now(),
})
},

View File

@ -73,7 +73,7 @@ export const EntryItemContextMenu = ({
view: selectedView,
filter: payload,
time: {
startTime: new Date(publishedAt).getTime(),
startTime: new Date(publishedAt).getTime() + 1,
endTime: Date.now(),
},
})