Unable to unlike post if ownership is transferred to self

I created a PR to address this issue:

https://github.com/discourse/discourse/pull/10446

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