Merge branch 'remove-info-from-users' into 'develop'
Removed users.info field See merge request pleroma/pleroma!2006
This commit is contained in:
commit
0d24ab04c5
5 changed files with 14 additions and 27 deletions
|
|
@ -118,8 +118,6 @@ defmodule Pleroma.User do
|
|||
has_many(:registrations, Registration)
|
||||
has_many(:deliveries, Delivery)
|
||||
|
||||
field(:info, :map, default: %{})
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
|
|
@ -225,7 +223,6 @@ defmodule Pleroma.User do
|
|||
|
||||
params =
|
||||
params
|
||||
|> Map.put(:info, params[:info] || %{})
|
||||
|> truncate_if_exists(:name, name_limit)
|
||||
|> truncate_if_exists(:bio, bio_limit)
|
||||
|> truncate_fields_param()
|
||||
|
|
@ -1211,7 +1208,7 @@ defmodule Pleroma.User do
|
|||
def external_users(opts \\ []) do
|
||||
query =
|
||||
external_users_query()
|
||||
|> select([u], struct(u, [:id, :ap_id, :info]))
|
||||
|> select([u], struct(u, [:id, :ap_id]))
|
||||
|
||||
query =
|
||||
if opts[:max_id],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue