Pleroma forgetting followers
It appears that Pleroma has been “forgetting” following relationships. That is, following relationships have disappeared from Pleroma instances without action from either the follower or the followed user.
This has only been confirmed for remote followers/followed users, in which case both instances disagree on the following relationship: the remote instance will still list the following relationships as active.
More interestingly, the missing follow relationships seem to be at odds with the
activities stored by Pleroma, as the attached script seem to recover at least
some of the missing follow relationships (I am new to Elixir and the Pleroma
codebase, so this might not be very idiomatic nor efficient, and maybe I'm
overlooking some edge cases). Note that this script may not uncover missing
relationships between local users who do not require approval for following, as
Pleroma seems to not generate Accept
activities nor update the Follow
activity's state in those cases. I have also not seen any evidence of missing
follow relationships between local users.