diff options
author | lain <lain@soykaf.club> | 2018-12-01 10:40:01 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-12-01 10:40:01 +0100 |
commit | 347df6421d6b1794a39ac6ce9e24a9e51e136a62 (patch) | |
tree | 5d248ec33932c595f4bd07be2f7adb2630ec2c9a /lib/pleroma/user.ex | |
parent | c443c9bd72b04b8a24d904bc20fde0d4ffca71d7 (diff) | |
download | pleroma-347df6421d6b1794a39ac6ce9e24a9e51e136a62.tar.gz |
Fix masto api user updating.
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index bed8fd1b4..a84ab6841 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -112,10 +112,9 @@ defmodule Pleroma.User do end end - # TODO: Check if this still used def update_changeset(struct, params \\ %{}) do struct - |> cast(params, [:bio, :name]) + |> cast(params, [:bio, :name, :avatar]) |> unique_constraint(:nickname) |> validate_format(:nickname, ~r/^[a-zA-Z\d]+$/) |> validate_length(:bio, max: 5000) |