Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
279b1d19
Commit
279b1d19
authored
Apr 25, 2018
by
lain
Browse files
Align local bio limits to remote limit.
parent
d4a54a90
Pipeline
#1483
passed with stages
in 4 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
279b1d19
...
...
@@ -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:
1
000
)
|>
validate_length
(
:bio
,
max:
5
000
)
|>
validate_length
(
:name
,
min:
1
,
max:
100
)
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment