From 2abe244b6e9e19ad8beb0bcf108a9d6114a7c475 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Tue, 30 Jul 2019 13:03:01 -0400 Subject: [PATCH] fix: newPostEditDuration --- install/data/defaults.json | 2 +- test/posts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/data/defaults.json b/install/data/defaults.json index bfdcd18f1d..3f32fce583 100644 --- a/install/data/defaults.json +++ b/install/data/defaults.json @@ -11,7 +11,7 @@ "initialPostDelay": 10, "newbiePostDelay": 120, "postEditDuration": 0, - "newbiePostEditDuration": 3600000, + "newbiePostEditDuration": 3600, "postDeleteDuration": 0, "enablePostHistory": 1, "postCacheSize": 10485760, diff --git a/test/posts.js b/test/posts.js index 09043e2650..0bfdf2b633 100644 --- a/test/posts.js +++ b/test/posts.js @@ -518,7 +518,7 @@ describe('Post\'s', function () { setTimeout(function () { socketPosts.edit({ uid: voterUid }, { pid: pid, content: 'edited post content again', title: 'edited title again', tags: ['edited-twice'] }, function (err, data) { assert.equal(err.message, '[[error:post-edit-duration-expired, 1]]'); - meta.config.newbiePostEditDuration = 3600000; + meta.config.newbiePostEditDuration = 3600; done(); }); }, 1000);