projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d4a54a9
)
Align local bio limits to remote limit.
author
lain
<lain@soykaf.club>
Wed, 25 Apr 2018 13:41:59 +0000
(15:41 +0200)
committer
lain
<lain@soykaf.club>
Wed, 25 Apr 2018 13:41:59 +0000
(15:41 +0200)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index e9196ae0391b8b254008d1414b567e2da2265c38..20767499966cbea34408f43c3a3dad6ad385df8f 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-104,7
+104,7
@@
defmodule Pleroma.User do
|> cast(params, [:bio, :name])
|> unique_constraint(:nickname)
|> validate_format(:nickname, ~r/^[a-zA-Z\d]+$/)
|> cast(params, [:bio, :name])
|> unique_constraint(:nickname)
|> validate_format(:nickname, ~r/^[a-zA-Z\d]+$/)
- |> validate_length(:bio, max:
1
000)
+ |> validate_length(:bio, max:
5
000)
|> validate_length(:name, min: 1, max: 100)
end
|> validate_length(:name, min: 1, max: 100)
end