How do I Liked photos on Instagram work?

Liked photos on instagram

If you liked a post of someone you don't follow on Instagram and they then turn their settings to private does it still show the post you liked in your liked posts?
Re: Liked photos on instagram

It probably doesn't since they don't want people seeing that.

Original thread: https://forums.imore.com/threads/how-do-i-liked-photos-on-instagram-work.312836/