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_flagistrueirregardless 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:However, using
/comments/{ids}I getcan_flag: false, which is correct:I also tried
/comments/{ids}for an unflagged comment (comment ID:396655). It givescan_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.



todateand always post the current second likeMath.Floor(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds)and it always brings the current status. This also happens with Questions api call. If you do not passtodate, you will keep receiving same questions over and over. Again this is only in REST Side. from API Browser it works fine. – AVK Aug 27 '18 at 12:53todatewith the value above, it comes back asfalse. You can see this in Stack10. – AVK Aug 27 '18 at 18:01