Automattic / wordpress-activitypub

ActivityPub for WordPress
https://wordpress.org/plugins/activitypub/
MIT License
487 stars 73 forks source link

User Avatar Not Updated #669

Open cibersheep opened 8 months ago

cibersheep commented 8 months ago

Quick summary

The avatar of the Wordpress user is not updated in Mastodon after being followed

Steps to reproduce

  1. Assaign an avatar to the Wordpress user via Gravatar
  2. Follow Wordpress user in Mastodon
  3. Upload a new avatar for the user in Gravatar. Set it as default
  4. Update user info in Mastdon

What you expected to happen

Avatar is updated to the current Gravatar picture

What actually happened

In Mastdon, you still see the first avatar from Gravatar Unfollow and refollow doesn't make any difference

Impact

Some (< 50%)

Available workarounds?

There is no user impact

Logs or notes

No response

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

pfefferle commented 4 months ago

The problem with that is, that WordPress does not really know if the Avatar is updated 🤔

janboddez commented 3 months ago

As a (temporary?) workaround, could you not subsequently also update your user profile (like change your bio, or even just press the Update button, in WordPress, after having updated the Gravatar image)?

Wouldn't that cause WordPress to push an update to followers' servers?

Not sure if that'd get those servers to (re-)download the image ... Could still be Mastodon is like, "Meh, same URL, don't need to check if maybe the image itself has changed." (If so, that would be a Mastodon issue.)

A "better" solution could be to eventually have WordPress check (like, once a day or so) if the image hasn't changed (by downloading it and compare the [binary] data or a hash thereof or something with an earlier version).

Another possible solution might be to use a local avatar, maybe? Through a plugin? Although I'm not sure if updating it would trigger an Update request. I guess it'd depend on where you set it, too.

cibersheep commented 3 months ago

As a (temporary?) workaround, could you not subsequently also update your user profile (like change your bio, or even just press the Update button, in WordPress, after having updated the Gravatar image)?

Thanks for the suggestion. I have tested with same results.

I searched for the user in a private tab of Firefox. It shows old avatar

imatge

User in WordPress has new one. I have updated the bio yesterday for the test

imatge

pfefferle commented 3 months ago

But the Bio was updated on Mastodon?

cibersheep commented 3 months ago

Yes. It did (instantly)