Split hide_network into hide_followers & hide_followings

This commit is contained in:
Maxim Filippov 2019-01-28 21:31:08 +03:00
commit 50d6183893
10 changed files with 82 additions and 41 deletions

View file

@ -583,7 +583,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
followers =
cond do
for_user && user.id == for_user.id -> followers
user.info.hide_network -> []
user.info.hide_followers -> []
true -> followers
end
@ -599,7 +599,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
followers =
cond do
for_user && user.id == for_user.id -> followers
user.info.hide_network -> []
user.info.hide_followings -> []
true -> followers
end