Enable Like-Button for not logged-in visitors

Discourse core is not written in php.

You’ll have to make a very very custom plugin to get it to work but then, that would be violation of GDPR

Not to say, a feature as such is very easy to exploit as anyone with any sane knowledge of how to reverse engineer the browser cookies will be able to blast random posts with infinite likes.