Skip to content

Syndicating to IndieNews

Reminded of IndieNews, I set out to create a smallish WordPress plugin to enable sharing over there.

Now, my (WordPress) blog already supports automatic outgoing webmentions, so this could’ve been as easy as adding the correct outgoing hyperlink, no extra plugin required.

Except … While I have always supported microformats—little more than HTML class attributes, mostlyinside post content rather than as separate post meta, separate post meta is exactly how I’ve implemented syndication links.

The reason? I’ve got to first publish a post, then syndicate to (possibly multiple) third-party sites, and finally, store the response somewhere. In this last step, rather than parse and append to the actual post, I instead store syndication links in custom (or meta) fields: _share_on_mastodon_url, for instance, or _share_on_pixelfed_url or … well, _share_on_indienews_url.

My front-end code then grabs the values for these and outputs something along the lines of “Also on Mastodon, Pixelfed.”

Still, because it’s “just a webmention,” this plugin’s much simpler than my Mastodon and Pixelfed plugins. (Another difference is that I’ve got to set that temporary URL.)

Up next: adding IndieNews to my Micropub configuration’s syndication targets.

Replies

  1. Zachary Dunn Zachary Dunn on

    Nice! If you’re looking for more IndieWeb places to syndicate, there’s also IndieWeb.xzy, which is a reddit-like aggregator minus any handling of comments, and IndieForums, which is a forum that handles comments but everything is a syndicated post.

    Via adhoc.systems, in reply to Syndicating to IndieNews.

  2. Jamie Tanna Jamie Tanna on

    … liked this.

    Via www.jvt.me, in reply to Syndicating to IndieNews.