From cd6a1d09f5e807ed319046d81bb7edc53f53fa11 Mon Sep 17 00:00:00 2001 From: Kio-td Date: Sat, 11 Feb 2023 07:18:56 -0500 Subject: [PATCH] Fix bad math --- packages/backend/src/remote/activitypub/models/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/remote/activitypub/models/note.ts b/packages/backend/src/remote/activitypub/models/note.ts index 3c438aa2fc..e643e24c9f 100644 --- a/packages/backend/src/remote/activitypub/models/note.ts +++ b/packages/backend/src/remote/activitypub/models/note.ts @@ -135,7 +135,7 @@ export async function createNote( logger.warn('Note somehow made before Activitypub was created; discarding'); return null; } - if (DateChecker < FutureCheck) { + if (DateChecker > FutureCheck) { logger.warn('Note somehow made after today; discarding') return null; }