Closed bodhisha closed 3 years ago
@bodhisha hey, I can take up this issue. :) Also, Lemme know about the threshold you are referring to!
@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).
Makes sense! May be I can add threshold in an env variable so the developer can change if he wants. @aitikgupta
@amalaabraham that's right :D
See https://github.com/MLH-Fellowship/SocioMark/blob/main/backend/.env.example for the variables we currently use. 👍🏼
Sure :)
Return the post only if the number of reports < threshold