I made a PR a few days ago where I tried to put that logic back in sources and not the template ... sorry on the run right now so can't link to it ... the idea was to show the number of likes (assuming a post had been liked) to everyone and only show the like/unlike to those that can use those capabilities.  That logic should have been set where the can_like is setup AFAIR