diff --git a/server/chat-plugins/chatlog.ts b/server/chat-plugins/chatlog.ts index e348d9ff95..8113ece259 100644 --- a/server/chat-plugins/chatlog.ts +++ b/server/chat-plugins/chatlog.ts @@ -1155,7 +1155,7 @@ export const pages: Chat.PageTable = { const parsedDate = new Date(date as string); const validDateStrings = ['all', 'alltime', 'today']; - // this will make it throw if we call toISOString, so this is only allowed if a + // this will make it throw if we call toISOString, so this is only allowed if it's a search const validSearchDate = date && validDateStrings.includes(date) && search; // this is apparently the best way to tell if a date is invalid if (date && isNaN(parsedDate.getTime()) && !validSearchDate) {