From d9faae483d23637a057abc36bef1b66ac519ce03 Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Wed, 21 Jul 2021 15:28:47 +0400 Subject: [PATCH] FIX: Consider 100 years suspension as permanent (instead of 500-years suspension) (#13808) That'll be consistent with recent changes in https://github.com/discourse/discourse/pull/13776 --- app/assets/javascripts/discourse/app/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/models/user.js b/app/assets/javascripts/discourse/app/models/user.js index 4b2b4e905f6..fc28a3b31f0 100644 --- a/app/assets/javascripts/discourse/app/models/user.js +++ b/app/assets/javascripts/discourse/app/models/user.js @@ -37,7 +37,7 @@ export const SECOND_FACTOR_METHODS = { SECURITY_KEY: 3, }; -const isForever = (dt) => moment().diff(dt, "years") < -500; +const isForever = (dt) => moment().diff(dt, "years") < -100; let userFields = [ "bio_raw",