From b106fe0fc678a4cf656142973d742af8ac601863 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 27 Jan 2019 14:28:24 -0600 Subject: [PATCH] increase size of last comments for reply detection to 5000 and time to 31 days #268 --- backend/app/rest/api/rss.go | 4 ++-- backend/app/store/service/restricted_words_test.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/app/rest/api/rss.go b/backend/app/rest/api/rss.go index 8dd58f38..4450cc32 100644 --- a/backend/app/rest/api/rss.go +++ b/backend/app/rest/api/rss.go @@ -16,8 +16,8 @@ import ( ) const maxRssItems = 20 -const maxLastCommentsReply = 1000 -const maxReplyDuration = 24 * time.Hour +const maxLastCommentsReply = 5000 +const maxReplyDuration = 31 * 24 * time.Hour // ui uses links like #remark42__comment- const uiNav = "#remark42__comment-" diff --git a/backend/app/store/service/restricted_words_test.go b/backend/app/store/service/restricted_words_test.go index b0d4272f..42aac6c4 100644 --- a/backend/app/store/service/restricted_words_test.go +++ b/backend/app/store/service/restricted_words_test.go @@ -1,8 +1,9 @@ package service import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestMatcher_Tokenize(t *testing.T) {