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
15 stars 8 forks source link

Report threshold #107

Closed bodhisha closed 3 years ago

bodhisha commented 3 years ago

Return the post only if the number of reports < threshold

amalaabraham commented 3 years ago

@bodhisha hey, I can take up this issue. :) Also, Lemme know about the threshold you are referring to!

aitikgupta commented 3 years ago

@amalaabraham It can be any threshold. Basically, currently we call <backend_url>/post/all to get all the posts in the database - we need to return back only those posts whose post.report_counter < 5, where 5 is just a threshold (it is up for discussion as to what that exact value should be).

amalaabraham commented 3 years ago

Makes sense! May be I can add threshold in an env variable so the developer can change if he wants. @aitikgupta

aitikgupta commented 3 years ago

@amalaabraham that's right :D

See https://github.com/MLH-Fellowship/SocioMark/blob/main/backend/.env.example for the variables we currently use. 👍🏼

amalaabraham commented 3 years ago

Sure :)