Open janboddez opened 2 months ago
We should do this here: https://github.com/janboddez/indieblocks/blob/ed830a471346cc5e5e4eb10bf0224663a0cee52d/includes/webmention/class-webmention-parser.php#L234
But also in the other two places we currently call this function.
And, we should probably base the hash off something other than the image URL (like the author URL, if there is one). (Oh, wait, that's the subject of #187.)
Like, not month and year, but just the two first characters of the filename (hash). Like how caching solutions do it.
Month and year (which IndieBlocks does not use, but https://github.com/janboddez/addon-for-activitypub does) aren't great, because they cause file paths to change every month, and therefore unnecessary duplicates and so on. :-)