]> source.dussan.org Git - gitea.git/commit
Enhance Ghost comment mitigation Settings (#14392)
author6543 <6543@obermui.de>
Fri, 22 Jan 2021 02:56:19 +0000 (03:56 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Jan 2021 02:56:19 +0000 (21:56 -0500)
commita0e424da859a5bf52fe1f08c08a9dcbe3e9d92eb
treef2326a97f31b4816c5e0cba98bf60392898b3728
parent0e2e73410e1e222633c007969d384d392d0420a3
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>
14 files changed:
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
models/admin.go
models/issue_assignees.go
models/issue_comment.go
models/issue_reaction.go
models/user.go
modules/setting/service.go
options/locale/locale_en-US.ini
routers/api/v1/repo/issue_comment.go
routers/repo/issue.go
routers/user/setting/account.go
services/comments/comments.go
templates/user/settings/account.tmpl