[Enhancement] Prevent creation of duplicated comments in a row #5288

Open
opened 2025-11-02 06:20:25 -06:00 by GiteaMirror · 10 comments
Owner

Originally created by @6543 on GitHub (Apr 23, 2020).

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

Originally created by @6543 on GitHub (Apr 23, 2020). 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
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 06:20:25 -06:00
Author
Owner

@lunny commented on GitHub (Apr 23, 2020):

This should be a anti-spam policy.

@lunny commented on GitHub (Apr 23, 2020): This should be a anti-spam policy.
Author
Owner

@6543 commented on GitHub (Apr 23, 2020):

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

@6543 commented on GitHub (Apr 23, 2020): 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
Author
Owner

@stale[bot] commented on GitHub (Jun 23, 2020):

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.

@stale[bot] commented on GitHub (Jun 23, 2020): 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.
Author
Owner

@a1012112796 commented on GitHub (Jun 23, 2020):

ping,
I think maybe we should have a minimum time interval limit. If interval time is too short, we should skip this new comment.

@a1012112796 commented on GitHub (Jun 23, 2020): ping, I think maybe we should have a minimum time interval limit. If interval time is too short, we should skip this new comment.
Author
Owner

@6543 commented on GitHub (Jun 23, 2020):

Codeberg has a patch witch is doing this ...

https://codeberg.org/6543/Codeberg-gitea/pulls/2/commits

@6543 commented on GitHub (Jun 23, 2020): Codeberg has a patch witch is doing this ... https://codeberg.org/6543/Codeberg-gitea/pulls/2/commits
Author
Owner

@6543 commented on GitHub (Jun 23, 2020):

but I would make it more configurable:

  • dont limit the admin ...
  • make sure migration things are not afected by this
  • make 2 etrys in config (one for UI one for API) with time in sec or 0 to deactivate it ...
@6543 commented on GitHub (Jun 23, 2020): but I would make it more configurable: * dont limit the admin ... * make sure migration things are not afected by this * make 2 etrys in config (one for UI one for API) with time in sec or 0 to deactivate it ...
Author
Owner

@stale[bot] commented on GitHub (Aug 23, 2020):

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.

@stale[bot] commented on GitHub (Aug 23, 2020): 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.
Author
Owner

@6543 commented on GitHub (Aug 23, 2020):

Ping

@6543 commented on GitHub (Aug 23, 2020): Ping
Author
Owner

@stale[bot] commented on GitHub (Oct 23, 2020):

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.

@stale[bot] commented on GitHub (Oct 23, 2020): 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.
Author
Owner

@a1012112796 commented on GitHub (Oct 23, 2020):

ping :)

@a1012112796 commented on GitHub (Oct 23, 2020): ping :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5288