Scroll to top

17/11/2023

The home on the web of Colin Walker.
Find out more on /ident, say /EHLO, or tune in to the daily RSS feed.

2023/11/17#p1

After fixing a couple of things with regards to webmentions yesterday I'm now trying to resolve a long standing issue with publishing draft posts using the 'one-click' option:

one-click submit for drafts

Clicking this updates the post to live, sets the correct date and section number, updates the RSS feed and is then supposed to send any webmentions. It uses the same code as making a new post and updating an existing live post but no dice.

It was doing the same thing before the recent changes and I've never been able to work out why so I'm having to test by dumping a load of variables to logs to work out what's going on.

Update I think I've fixed it! Bizarrely, it doesn't appear to have been anything to do with the webmention code itself. Moving the call to update the RSS feed to after sending webmentions (rather than before) seems to have fixed it. 🤷‍♂️

No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



2023/11/17#p2

I've also managed to shrink the main blog.php file by about 11kb. Okay, some of that is from moving CSS to a separate file but I've still made quite a reduction.

No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



Close