Scroll to top

01/12/2022


2022/12/01#p1

0 comments: click to leave a comment

The live RSS feed gets refreshed whenever a post is created, updated or deleted to ensure everything is as it should be. That's been fine until now but, with rssCloud pings, I've put in an extra bit of logic to stop this happening when working on a draft. There's no need for an update in that scenario and it avoids spamming folks with needless notifications.

I might also work on checking if the post being updated/deleted is even in the feed (currently last 10 items) to determine if a refresh is required.

Update: that should be in and working now.

Seems to be working! 🎉

No comments yet
Leave a reply



You can also:

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



2022/12/01#p2

0 comments: click to leave a comment

One more new thing for /reader.

With Chromium based browsers 1 auto-blocking mixed mode content, links to images addressed as http:// will not load. This leaves certain items incomplete – not ideal.

I'm working around this as follows:

  • /reader checks the content of an item for images addressed as http using a preg_match_all query
  • for each 'match' it gets the url and file type
  • prepares a random file name with the relevant extension
  • grabs the image and saves a temp copy to the server as that name
  • replaces the url in the item content

No more mixed mode issues!

To stop things getting cluttered, each time /reader is loaded, it deletes any files in the temp location older than a specified number of seconds.

This may cause a slight delay (especially with large images) but it's better than having no images at all.


  1. and let's face it, that's most browsers now 😢 

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