summaryrefslogtreecommitdiffstats
path: root/custom/conf/app.example.ini
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-01-17 21:48:38 +0100
committerGitHub <noreply@github.com>2021-01-17 21:48:38 +0100
commit21da519c0cd6e243888ebe573e3496e4eda01f10 (patch)
treea4e2fe5cf6dae77091e8089fa6b98c8684b07fe1 /custom/conf/app.example.ini
parentca63a9d3f1120d8c76eb83ff1fd07e0992a683a8 (diff)
downloadgitea-21da519c0cd6e243888ebe573e3496e4eda01f10.tar.gz
gitea-21da519c0cd6e243888ebe573e3496e4eda01f10.zip
Implement ghost comment mitigation (#14349)
* Implement ghost comment mitigation Adds a config option USER_DELETE_WITH_COMMENTS_MAX_DAYS to the [service] section. See https://codeberg.org/Codeberg/Discussion/issues/24 for the underlying issue. * cleanup * use setting module correctly * add to docs Co-authored-by: Moritz Marquardt <git@momar.de>
Diffstat (limited to 'custom/conf/app.example.ini')
-rw-r--r--custom/conf/app.example.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index e68727eb84..3920f5112c 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -688,6 +688,9 @@ AUTO_WATCH_NEW_REPOS = true
; Default value for AutoWatchOnChanges
; Make the user watch a repository When they commit for the first time
AUTO_WATCH_ON_CHANGES = false
+; Default value for the minimum age a user has to exist before deletion to keep issue comments.
+; If a user deletes his account before that amount of days, his comments will be deleted as well.
+USER_DELETE_WITH_COMMENTS_MAX_DAYS = 0
[webhook]
; Hook task queue length, increase if webhook shooting starts hanging