this post was submitted on 07 Oct 2024
441 points (92.8% liked)

Ye Power Trippin' Bastards

484 readers
11 users here now

This is a community in the spirit of "Am I The Asshole" where people can post their own bans from lemmy or reddit or whatever and get some feedback from others whether the ban was justified or not.

Sometimes one just wants to be able to challenge the arguments some mod made and this could be the place for that.

Rules

Expect to receive feedback about your posts, they might even be negative.

Make sure you follow this instance's code of conduct. In other words we won't allow bellyaching about being sanctioned for hate speech or bigotry.


Some acronyms you might see.


Relevant comms

founded 4 months ago
MODERATORS
 

Also outs your report publicly, nice !

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 2 months ago (2 children)

They should do what Reddit does and by default make a 5 second rate limit of sending posts and comments, the first one gets accepted, the next ones get rejected within the 5 second ratelimit.

[–] [email protected] 14 points 2 months ago (2 children)

Another popular solution I see is to have the client generate a UUID when posting. Then the server can very easily tell if a request is a duplicate.

[–] JackbyDev 6 points 2 months ago (1 children)

I've seen this concept called idempotency tokens. I thought it was common but a quick search didn't find any articles on it so maybe the name is not that common.

[–] PoolloverNathan 1 points 2 months ago (1 children)
[–] JackbyDev 1 points 2 months ago

Nonce is the opposite. It's never supposed to be used more than once, right?

[–] [email protected] 2 points 2 months ago

Yeah, that's the proper fix.

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (1 children)

It doesn't solve the problem of your comment request timing out after waiting 30 seconds in a spotty mobile connection. Now that it timed out, you don't know if it was actually posted or not. A proper API would not post duplicate comments in response to retries of a request that already succeeded (without the client knowing).

[–] [email protected] 1 points 2 months ago

That's a good point, I like @[email protected] solution better. Make the request have it's own identifier and if one goes through disregard the rest.