From 214946897d4c90c135dea626511cd1c27f38c5ec Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 11 Aug 2024 13:49:46 -0400 Subject: [PATCH] Hardcode nn-block reputation --- src/utils/reputation.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/reputation.ts b/src/utils/reputation.ts index 6993f0b..9c881dc 100644 --- a/src/utils/reputation.ts +++ b/src/utils/reputation.ts @@ -17,6 +17,11 @@ interface ReputationDBResult { const activeReputationRequests: Record> = {}; export async function getReputation(userID: UserID): Promise { + // Hardcode for NN-block because too many submissions + if (userID === "d6e8b39e6a79917166486066667caab54a2dec5e8384e46f92a82ef56e775005") { + return Promise.resolve(27); + } + const weekAgo = Date.now() - 1000 * 60 * 60 * 24 * 7; // 45 days ago const pastDate = Date.now() - 1000 * 60 * 60 * 24 * 45; // 45 days ago // 1596240000000 is August 1st 2020, a little after auto upvote was disabled