This is extension removes the ability to like (or unlike) posts on a locked discussion.
There are no settings. Just enable the extension in the admin panel.
About restricted tags (tags that have custom permissions): Due to a limitation in Flarum, this extension must be enabled before the Tags extension in order for the lock to apply in restricted tags flarum/core#1832
composer require clarkwinkelmann/flarum-ext-lock-likes
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community.
I might publish simple bugfixes or compatibility updates for free.
You can contact me to sponsor additional features or updates.
Support is offered on a "best effort" basis through the Flarum community thread.
The initial version of this extension has been sponsored by HereWeLink