update following_relationship.ex

This commit is contained in:
Maksim Pechnikov 2019-11-05 10:50:03 +03:00
commit e52955c961
2 changed files with 48 additions and 1 deletions

View file

@ -101,7 +101,7 @@ defmodule Pleroma.FollowingRelationship do
|> select([r, u], u.follower_address)
|> Repo.all()
if not user.local or user.nickname in [nil, "internal.fetch"] do
if not user.local or user.invisible do
following
else
[user.follower_address | following]