glitch-soc / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
685 stars 182 forks source link

User doesn't show as being followed after accepting a follow request #2259

Open IDeletedSystem64 opened 1 year ago

IDeletedSystem64 commented 1 year ago

Steps to reproduce the problem

  1. Follow an user
  2. That user then sends back a follow request
  3. Accept the follow request ...

Expected behaviour

The user still shows as you following them

Actual behaviour

The "New follower" notification shows that I'm not following the user, and going to their profile also shows the same until reloading.

Detailed description

No response

Specifications

Glitch-soc v4.1.0 Mozilla Firefox 114.0.1 (unsure of the rest Of the specifics as I'm just an user)

ClearlyClaire commented 1 year ago

This sounds like a cache issue, in which case this will resolve itself within 24h, but I'm not sure why a wrong value would be cached here.

marrus-sh commented 1 year ago

Considering a refresh fixes it, it sounds to me like the follow request notification is clearing the relationships in the frontend (i.e. setting it to "follows you" and not "mutual"). Then, since it already has a value, the relationship is never re-fetched/updated until a refresh.