When liking a post, there’s a grace period where you can remove the like. After that, the like becomes “locked” and can’t be removed anymore.
My suggestion is that after a post you liked is edited, you should have the ability to remove your like because the edit may have turned the post into something you wouldn’t have liked in the first place.
I went to a random liked topic to try it, but looks like it isn’t working for me. I’ll try it later and report if it works, just in case it may take some time to take effect.