Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best way to check if a post has been reported. #31

Open
jdd-software opened this issue Apr 16, 2018 · 1 comment
Open

What is the best way to check if a post has been reported. #31

jdd-software opened this issue Apr 16, 2018 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@jdd-software
Copy link
Member

With a userscript we would like to know if a post/comment has been reported.

Probably we need a public end point (without access token) where user can send post_id/comment_id
(in json contentId) and in response can get the report_id. If it is not present the response will be null or <=0.

The direct implementation is that we would like to avoid sending nc feedback in chat when a user flags no longer needed on a comment that has not been reported by HeatDetector.

@jdd-software jdd-software added enhancement New feature or request question Further information is requested labels Apr 16, 2018
@rjrudman
Copy link
Collaborator

rjrudman commented Apr 26, 2018

I like this more than the current one we have. I quickly exposed an endpoint which lets you query for the contentUrl. However, there are various ways to build a link to content on SO, and since we're doing an exact text search, this isn't too reliable.

We'd also need to include the content type, to avoid id collisions. So maybe something like

api.higgs.sobotics.org/reviewer/check?contentId=123&contentType=comment
api.higgs.sobotics.org/reviewer/check?contentId=123&contentType=question
api.higgs.sobotics.org/reviewer/check?contentId=123&contentType=answer
api.higgs.sobotics.org/reviewer/check?contentId=123&contentType=review

Higgs won't know about what contentTypes are available - that's up to the bots to decide when they register a post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants