janboddez / share-on-mastodon

Easily share WordPress posts on Mastodon.
https://jan.boddez.net/wordpress/share-on-mastodon
GNU General Public License v3.0
39 stars 5 forks source link

"Unlink" button unchecking checkbox #91

Closed janboddez closed 11 months ago

janboddez commented 1 year ago

We have the "unlink" function remove the stored checkbox value, but only for the Gutenberg + meta box users, to prevent it from doing things it shouldn't. Or so it should be. And then the front end reflects that, sort of.

Classic editor users should not see this, as the risk isn't there. So the box stays checked, except sometimes the backend value does get removed.

Look into making this more robust. Like, we could send a parameter along (in the AJAX POST request), but only for Gutenberg requests.