Normal service is resuming
Apr. 3rd, 2022 07:57 pmandrewducker reminded me that LJ (and, hence, also DW) have a post-by-email interface. The WordPress plugin I used to cross-post to LJ uses the XMLRPC API, but that did not seem to work on DW (and, to be frank, I also had to modify the code to get it to work on LJ too). The API situation at DW is a bit of a mess: the classic “the old API is unsupported, the new API is not finished yet”, which is always a lot of fun…
So messing around with that would be complex and time-consuming, but formatting a mail in a certain way and sending that is, actually, very easy to do in PHP — so I went for that.
The only drawback is that the previous interface would update the entry on LJ when I updated the entry on my blog. The XMLRPC API has an ‘edit’ mode that allows you to do so, and the ID of the entry was recorded in the WordPress instance, so the code could refer back to that entry. Of course, since post-by-mail is essentially ‘fire and forget’, there is no feedback. But I did not use that feature a lot. If it happens, I just need to update the DW entry manually. That should not pose too much of a burden.
This is the first non-test post that will go through the new crossposting code — it should work, fingers crossed. If you see this on DW, then it worked!
(Or not, and I fixed it, and then deleted the entry on my blog and re-posted it. I’ll never tell.)
Crossposted from my blog. Comment here or at the original post.