lobsters/lobsters

Disallow duplicate comments posted around the same time

Open

#1,209 opened on Sep 25, 2023

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Ruby (961 forks)user submission
buggood first issue

Repository metrics

Stars
 (4,680 stars)
PR merge metrics
 (Avg merge 7d 4h) (20 merged PRs in 30d)

Description

Anecdotally, I've noticed an uptick recently in duplicate comments being posted in stories. For example: https://lobste.rs/s/bkw5u0/no_stale_bots#c_7jfizv and https://lobste.rs/s/bkw5u0/no_stale_bots#c_woz48w, and there was another pair on a recent story too (I'm not sure which one).

Seems likely this is a comment POST being received and processed by the server, but not making it back to the client or something like that. Ideally the server could catch this case and either abort the comment post or ideally simply lie to the client that the comment had been posted, claiming that the already-posted comment was actually the just-submitted comment. (Assuming the server even returns e.g. the comment URL - I haven't actually checked.)

It's unclear to me whether this is a recent problem or whether I just happen to have noticed it recently.

Contributor guide