wordpress-webmention
wordpress-webmention copied to clipboard
Feature Request: save webmention icons locally
If a post has multiple likes, retweets, comments, etc, that means lots of images need to get fetched from Mastodon and Twitter.
Those links are all separate requests to third party services that can slow down page load. Additionally, those links could go bad, and leave a page with multiple image requests that 404.
I am suggesting that comment images be saved locally, to avoid both of those issues.
@davidwolfpaw See recent PR on this.
I actually want to rewrite the PR to be broader.
Also, I may experiment with it as a separate non published plugin to see how it works in practice.
As @dshanske already said: there is an open pull request ( #297 ) for that, that needs some more attention to add missing things like:
- scan past posts
- use hashes insted of usernames
- normalize URLs to not save avatars twice
I hope I or @dshanske will find some time, to finish the PR.
The problem is, that twitter does not have consistent avatar URLs. They invalidate if a twitter user changes his avatar.
I intend to do some work on it and try to use the code to see what happens
There has been a decision to not include avatar caching within the plugin at this time. The Avatar Privacy plugin currently caches webmention avatars for a customizable period of time, but not forever and is available immediately. And I'm going to take the code @pfefferle and I worked on for this and put it into a repo as an independent piece if someone wants to use it or if I want to work on it.