X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fuser%2Finfo.ex;h=2186190a066a3d972d50394573ad8f038357e79f;hb=28bfb09b01d324e149e9f36a74db2674a07b07da;hp=8ac50540d994b9424eeb96427228d829bd40a8ee;hpb=0c750bc432a6329be7f0dc15707e46625b11faf3;p=akkoma diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index 8ac50540d..2186190a0 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -30,8 +30,9 @@ defmodule Pleroma.User.Info do field(:topic, :string, default: nil) field(:hub, :string, default: nil) field(:salmon, :string, default: nil) - field(:hide_network, :boolean, default: false) - field(:pinned_activities, {:array, :integer}, default: []) + field(:hide_followers, :boolean, default: false) + field(:hide_followings, :boolean, default: false) + field(:pinned_activities, {:array, :string}, default: []) # Found in the wild # ap_id -> Where is this used? @@ -42,8 +43,6 @@ defmodule Pleroma.User.Info do # subject _> Where is this used? end - def superuser?(info), do: info.is_admin || info.is_moderator - def set_activation_status(info, deactivated) do params = %{deactivated: deactivated} @@ -145,7 +144,8 @@ defmodule Pleroma.User.Info do :no_rich_text, :default_scope, :banner, - :hide_network, + :hide_followings, + :hide_followers, :background ]) end