janboddez / indieblocks

Use blocks, and, optionally, "short-form" post types to more easily "IndieWebify" your WordPress site.
https://indieblocks.xyz
GNU General Public License v3.0
22 stars 3 forks source link

Use avatar subdirs #188

Open janboddez opened 2 months ago

janboddez commented 2 months ago

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. :-)

janboddez commented 1 month 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.)