diff options
author | 6543 <6543@obermui.de> | 2021-01-22 03:56:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 21:56:19 -0500 |
commit | a0e424da859a5bf52fe1f08c08a9dcbe3e9d92eb (patch) | |
tree | f2326a97f31b4816c5e0cba98bf60392898b3728 /templates/user | |
parent | 0e2e73410e1e222633c007969d384d392d0420a3 (diff) | |
download | gitea-a0e424da859a5bf52fe1f08c08a9dcbe3e9d92eb.tar.gz gitea-a0e424da859a5bf52fe1f08c08a9dcbe3e9d92eb.zip |
Enhance Ghost comment mitigation Settings (#14392)
* refactor models.DeleteComment and delete related reactions too
* use deleteComment for UserDeleteWithCommentsMaxDays in DeleteUser
* nits
* Use time.Duration as other time settings have
* docs
* Resolve Fixme & fix potential deadlock
* Disabled by Default
* Update Config Value Description
* switch args
* Update models/issue_comment.go
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/settings/account.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 4f7d8a50c7..04ab539088 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -174,7 +174,7 @@ <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> + <p class="text left" style="font-weight: bold;">{{.i18n.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxTime | Str2html}}</p> {{ end }} </div> <form class="ui form ignore-dirty" id="delete-form" action="{{AppSubUrl}}/user/settings/account/delete" method="post"> |