11

Other than laboriously going through my votes in my profile, is there any way to know if I voted on a post where the vote arrows are missing due to a lock?

no vote icons

In this case it's a content dispute (apparently a bug), but the same applies for historical locks.

6
  • 2
    Ordinary locks won't remove the vote buttons, afaik only historical lock removes them. Anyway, don't think there is a way to know if you voted, except a userscript. Commented Sep 17, 2023 at 13:01
  • 2
    @ShadowTheGPTWizard The screenshot is from a content dispute.
    – Laurel
    Commented Sep 17, 2023 at 13:20
  • Huh, weird. I will look into it, but saw several locked posts having the vote arrows just fine. Commented Sep 17, 2023 at 14:06
  • @Laurel Looking at the linked bug report, it's marked as status-completed, with an answer stating it's fixed, so if you're still seeing that bug, that may be worth noting, either in another answer or via a follow-up bug report
    – cocomac
    Commented Sep 17, 2023 at 17:29
  • Your profile has pages with lists of all the posts on which you voted, separated into upvotes and downvotes. Why is that not sufficient? Given that the post isn't deleted, you should also be able to get the data as to if you voted from the SE API. I'd expect that it's also available from the SE internal endpoints which provide vote information for the post, but I haven't checked.
    – Makyen
    Commented Sep 17, 2023 at 19:09
  • @cocomac As per the comments there, the fix was not retroactive - that is, posts that were affected by the bug will have to be unlocked and re-locked to be fixed. Commented Oct 22, 2023 at 19:17

1 Answer 1

2

You should be able to do this through the SE API. The question, answer, and post types have both a downvoted field and an upvoted field which, respectively, show if the requesting user has upvoted or downvoted the post. That information is considered private, so you will need to obtain and use an access_token when making the request for the data on the posts.

I say "should be able to do this", because I have not actually tested that the data is valid, due to the difficulty in finding an appropriately-locked post which I know I've voted on in order to verify the upvoted and downvoted data is provided accurately. However, I'd consider it unlikely that a filter would have been put on the data provided by the SE API for the cases of a posts locked with specific types of locks.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .