I am trying to see and show whether a comment on question/answer is flagged by the authenticated user.
- But whenever I use /questions/{ids},
can_flag
istrue
irregardless of whether the user (me) can actually flag the comment. - When I use /comments/{ids}, I get the correct status.
- Editors note: additional/updated/different info in the answer below, but this still looks like a set of bugs.
Example:
In this answer there (Id 54725), I flagged the (now deleted) comment with ID 764560 (Link now works only for SE devs and MetaSE moderators).
But the
/questions/{ids}
route showscan_flag: true
, which is incorrect:
2. However, using `/comments/{ids}` I get `can_flag: false`, which is **correct**:
2. I also tried `/comments/{ids}` **for an unflagged comment** ([comment ID:396655][8]). It gives`can_flag: true`, which is **correct**:
Why is there an inconsistency? This looks like a bug.
Note: I did (re)check /questions/{ids}
30 minutes after flagging the comment. So this does not seem to be a time-delay/caching issue.