toddsundsted / ktistec

Single user ActivityPub (https://www.w3.org/TR/activitypub/) server.
GNU Affero General Public License v3.0
366 stars 20 forks source link

Remote actor "bios" are not being refreshed. #112

Open winks opened 2 months ago

winks commented 2 months ago

Not sure how well I can explain this.

I just clicked on an account link in my timeline (original profile is Mastodon) where I know the bio must have been changed this week[1], but apparently my instance already saw one toot by that account in July 2023.

So on my instance https://sup.f5n.org/remote/actors/87533 shows the old content at the top and the "real" page on the origin server shows the updated bio.

I can only assume this is being cached at some point and not invalidated. Not important, but wanted to document it.

[1]: Why? It's a government account and the boost was "Hi, I'm the new [function]" and so I clicked through and my remote actors page has the old name of the person in [function], that's why I 90% sure it was changed this week, or at least changed at all since July 2023

toddsundsted commented 2 months ago

it is cached and never invalidated. you should be able to "manually" refresh the bio by searching for the actor, which pulls the actor profile and then stores it again.

it is easy to automate this, but i think it would have poll for changes and i don't have good feeling for how frequently that makes sense.

fwiw, i also trigger a reload when an actor's image fails to load. this gets both an updated bio and the image icon and background. using this to detect changes isn't super reliable, however.

there probably isn't any real downside to just refreshing even as often as every day. it just seems a bit wasteful.