Open 6543 opened 4 years ago
This should be a anti-spam policy.
A sma xorm query should do it ...
e.where("poster_id=? And issue_id=?",poster,issue).sort(byId, latestfirst).Get(comment)
If comment.content == newcomment.contend -> return error
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
ping, I think maybe we should have a minimum time interval limit. If interval time is too short, we should skip this new comment.
Codeberg has a patch witch is doing this ...
but I would make it more configurable:
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Ping
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
ping :)
bevor creating a new comment check if the last one related to a issue/pull has the same contend and poster
just see: https://gitea.com/gitea/tea/pulls/125#issuecomment-111984