Skip to content

Implement automatic profile updates.

Alain St-Denis requested to merge astdenis/ap-profile-handling into master

Automatically request update profiles from content viewsets and streams based on the assumption that we only care about an updated profile when we're about to send it to the UI.

Remote profiles are to be updated when any of the following conditions are met:

  • unset finger property (this one includes local profiles)
  • fid exists and any of followers_fid or key_id is not set. These are new profile properties, migration required.
  • has not been updated for a configurable period of time. Currently set to 7 days.

Also, a new api route has been added to allow the UI to request profile updates when the profile icon GET request fails.

The actual update is run from a lowest priority rq job.

With support from federation, profile deletes can now be executed.

Latest federation code required.

This branch is based on the astdenis/various-fixes branch which I think this merge request can encompass, especially since one of the fixes in there is rendered moot by this one (set_profile_finger is gone and we're not updating profiles from get_sender_profile anymore).

Edited by Alain St-Denis

Merge request reports