Unable to unlike post if ownership is transferred to self

Reproduction steps:

  1. Like a post by another user
  2. Take ownership of that post
  3. You’ll see two like buttons and you won’t be able to unlike the post
    image

I’m guessing the logic that doesn’t allow you to like your own posts kicks in when you transfer ownership and that is why you can’t unlike the post as the new owner.

6 Likes

I created a PR to address this issue:

What I figured out is that the ownership transfer works just fine in removing likes if the ‘unlike’ timeout window hasn’t been reached yet, but if that has been reached, like on an old post, that is why the likes didn’t get removed because it fails to pass the guardian check of being able to unlike your own posts.

2 Likes