Skip to content

Notes tagged “posse”

Modified my “Share on Mastodon” mu-plugin, i.e., where …

Modified my “Share on Mastodon” mu-plugin, i.e., where I keep my PHP filters/tweaks, to correctly “thread” cross-posted replies to not only notes, but articles as well. https://indieweb.social/@janboddez/109884956066372057

Should probably share the exact code, but it looks something like https://jan.boddez.net/wordpress/share-on-mastodon#threaded_toots, i.e., I’m using a regex to look up the note or article I’m replying to and then fetch its syndication URL, which I use to derive and set an in_reply_to_id parameter.

Spent the evening experimenting with Gutenberg’s PluginPrePublishPanel. Thought …

Spent the evening experimenting with Gutenberg’s PluginPrePublishPanel. Thought it’d be nice if I could move Share on Mastodon’s “meta box” there. Think Jetpack does something similar.

Now I’m not so sure anymore. On the one hand, it may help prevent sharing when updating old posts. On the other, it’s almost too easy to simply disable the panel, so I’d probably still need a regular PluginDocumentSettingPanel.

Also, the way I currently process the old-style meta box interferes with Gutenberg’s setMeta(). No biggie, we can turn that off. Except … there’s still that “Custom Fields” panel (which I have open often): https://github.com/WordPress/gutenberg/issues/23078.

Conclusion, at least for now: I’m sticking with a regular meta box. (Which within Gutenberg looks somewhat out of place, but not horribly so.)

When I exclusively used WordPress’s classic editor and …

When I exclusively used WordPress’s classic editor and Jetpack’s Markdown module (or Easy Markdown), syndicating Markdown to, e.g., Mastodon, was easy. (Both plugins store unparsed Markdown in post_content_filtered, so I’d cross-post that.)

Now that I spend more and more time in the block editor, I have this issue where blockquotes, once syndicated, are no longer recognizable as (block)quotes—I strip away HTML before POSSEing, and there’s no > or nothing in the original post.

Might eventually solve this by converting (all) HTML to Markdown first.

Easy Markdown
jan.boddez.net