aboutsummaryrefslogtreecommitdiffstats
path: root/templates
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 /templates
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 'templates')
-rw-r--r--templates/user/settings/account.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl
index d753f9082e..4f7d8a50c7 100644
--- a/templates/user/settings/account.tmpl
+++ b/templates/user/settings/account.tmpl
@@ -173,6 +173,9 @@
<div class="ui attached error segment">
<div class="ui red message">
<p class="text left">{{svg "octicon-alert"}} {{.i18n.Tr "settings.delete_prompt" | Str2html}}</p>
+ {{ if .UserDeleteWithComments }}
+ <p class="text left" style="font-weight: bold;">{{.i18n.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxDays | Str2html}}</p>
+ {{ end }}
</div>
<form class="ui form ignore-dirty" id="delete-form" action="{{AppSubUrl}}/user/settings/account/delete" method="post">
{{.CsrfTokenHtml}}