MLH-Fellowship / SocioMark

A social media platform that lets you upload images and secures them by embedding a personalised hash.
https://sociomark.netlify.app
MIT License
16 stars 8 forks source link

Disallow user from reporting the same post multiple times #139

Open aitikgupta opened 3 years ago

aitikgupta commented 3 years ago

Currently, this is temporarily implemented on the client side with a REPORT_COOLDOWN flag, but it's not safe.

A user can ideally report all the posts and keep on reporting them until they reach the threshold that they don't get returned from the backend. Once https://github.com/MLH-Fellowship/SocioMark/pull/136 goes in, this would be a dire need.