Report Created

ZappySnap@lemmy.world to Lemmy.World Announcements@lemmy.world – 1 points –

So, browsing Lemmy.world today, I've noticed a green box show up a couple times in the lower left corner that says "Report Created". Any idea what that's about?

5

You are viewing a single comment

Is that because of some kind of event sourcing, though? That's not an uncommon way of handling these things.

Yes, of course it makes sense to do it that way. The issue is you can literally click the up arrow repeatedly as fast as you can and create some database load.

Usually, at least from my experience, it is good practice to put some logic client-side to prevent a user from repeatedly clicking a button accidentally (or on purpose -- hey, why did I get a double post?!). Even a quarter second delay can help.

Yeah, that kind of abuse prevention really shouldn't be client side at all. It's one thing to prevent a user accidentally causing harm, but if a bad actor can deliberately do it then we've got bigger problems.