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

"Quick Edit" turns off autopost #29

Closed edent closed 2 years ago

edent commented 2 years ago

Love the plugin. Small glitch with scheduled posts.

  1. Create a new post
  2. Schedule the post for a future date
  3. On the Scheduled Posts page, click "Quick Edit"
  4. Change the date to later
  5. Click save

The post will not auto-share to Mastodon.

Happy to provide more details if necessary.

janboddez commented 2 years ago

Interesting. I never actually tried it with scheduled posts. :-S

Do you happen to know if the _share_on_mastodon meta field gets set when the post is first saved/scheduled? (It should be '1', at least if the meta box checkbox was checked.) Because the "Quick Edit" function should leave that one untouched (unless it doesn't, somehow).

edent commented 2 years ago

The checkbox is checked after using "quick edit". I'll see if I can find the meta field in the DB.

edent commented 2 years ago

Ah! The problem is that my original post was scheduled before I installed this plugin.

So I need to go in and edit my previously written posts in order to get them shared.

Thanks for the swift response.

janboddez commented 2 years ago

Perfect!

Yeah, so it won't syndicate the post if the meta field isn't there (unless you use the share_on_mastodon_enabled, I think it was, filter, which is the probably way to go when posting from, e.g., a mobile app---another solution would be to set the custom field through another hook/callback).