Commit 279b1d19 authored by lain's avatar lain

Align local bio limits to remote limit.

parent d4a54a90
Pipeline #1483 passed with stages
in 4 minutes and 35 seconds
......@@ -104,7 +104,7 @@ def update_changeset(struct, params \\ %{}) do
|> cast(params, [:bio, :name])
|> unique_constraint(:nickname)
|> validate_format(:nickname, ~r/^[a-zA-Z\d]+$/)
|> validate_length(:bio, max: 1000)
|> validate_length(:bio, max: 5000)
|> validate_length(:name, min: 1, max: 100)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment