I can't replicate the bug as originally stated‡,stated; both /questions/{ids}
and /comments/{ids}
give the same results which are:
can_flag
is false for my comments. (Correct behaviorCorrect behavior)can_flag
is true for comments posted by others. (See next item)can_flag
is true even for comments that I have an active flag on. (Wrong behaviorWrong behavior)
##Steps to replicate:
Go to this API OAuth page and authorize the application.
From the resulting value in your browser's address bar, copy out the
access_token
value.
For example, if your browser is redirected to:https://stackexchange.com/oauth/login_success#access_token=OGuIJlBxxxMkj2Ola1jG1A))&expires=86400
You want the OGuIJlBxxxMkj2Ola1jG1A))
Find a question with a comment you can legitimately flag; perhaps the sandbox question on MetaSE.
Add your own comment there.
Flag a single comment that legitimately deserves it (if any).
Visit this page in your browser (After updating the access_token):
https://api.stackexchange.com/2.2/questions/3122/?access_token={INSERT VALUE FROM STEP 2 HERE}&site=meta&key=dp55hR5Wr9UhOJReA6F2gg((&filter=!pL7rWh2ni*lt.6(Pbf6bqCepl*I4sG)2VFlDiXzeex7895bjn0p3NcCGHCZb28uVIY
It helps if you use Firefox or a browser/extension that formats the JSON for you.
Note that
can_flag
is false for your comment. (Correct)In the JSON, find the comment you previously flagged (hopefully the comment and flag both still exist). Copy its ID.
Visit this page in your browser (After updating the comment ID and the access_token):
https://api.stackexchange.com/2.2/comments/{INSERT VALUE FROM STEP 8 HERE}?access_token={INSERT VALUE FROM STEP 2 HERE}&site=meta&key=dp55hR5Wr9UhOJReA6F2gg((&filter=!1zSn*g7xPUqB4hiVTpmJB
Note that the comment's
can_flag
still shows as true -- which is incorrect.Delete the comment you made in step 4, if appropriate.
Your
access_token
will expire in 24 hours. Or you can deauthorize the app by following these instructions.
‡ I'll probably edit the question in a bit to try and clear it up.