diff options
author | rinpatch <rinpatch@sdf.org> | 2019-10-25 14:51:02 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-10-25 14:51:02 +0000 |
commit | 653054d301b88070cd60f6b0f8a0b188dee81cba (patch) | |
tree | 008b30b4a8171864016eb09ab057f4a7008edaca | |
parent | 96cd66ac1bdadc0eefca6d63eb01e814690dba52 (diff) | |
parent | dbee53c2df797dae4bf72d99339af12c6c522ba9 (diff) | |
download | pleroma-653054d301b88070cd60f6b0f8a0b188dee81cba.tar.gz pleroma-653054d301b88070cd60f6b0f8a0b188dee81cba.zip |
Merge branch 'remove-unsed-info-fields-fn' into 'develop'
Remove unused Pleroma.User.info_fields/0
See merge request pleroma/pleroma!1882
-rw-r--r-- | lib/pleroma/user.ex | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 7bef6e281..b99e236a4 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -224,54 +224,6 @@ defmodule Pleroma.User do |> Repo.aggregate(:count, :id) end - @info_fields [ - :banner, - :background, - :source_data, - :note_count, - :follower_count, - :following_count, - :locked, - :confirmation_pending, - :password_reset_pending, - :confirmation_token, - :default_scope, - :blocks, - :domain_blocks, - :mutes, - :muted_reblogs, - :muted_notifications, - :subscribers, - :deactivated, - :no_rich_text, - :ap_enabled, - :is_moderator, - :is_admin, - :show_role, - :settings, - :magic_key, - :uri, - :hide_followers_count, - :hide_follows_count, - :hide_followers, - :hide_follows, - :hide_favorites, - :unread_conversation_count, - :pinned_activities, - :email_notifications, - :mascot, - :emoji, - :pleroma_settings_store, - :fields, - :raw_fields, - :discoverable, - :invisible, - :skip_thread_containment, - :notification_settings - ] - - def info_fields, do: @info_fields - defp truncate_fields_param(params) do if Map.has_key?(params, :fields) do Map.put(params, :fields, Enum.map(params[:fields], &truncate_field/1)) |