Align local bio limits to remote limit.
authorlain <lain@soykaf.club>
Wed, 25 Apr 2018 13:41:59 +0000 (15:41 +0200)
committerlain <lain@soykaf.club>
Wed, 25 Apr 2018 13:41:59 +0000 (15:41 +0200)
lib/pleroma/user.ex

index e9196ae0391b8b254008d1414b567e2da2265c38..20767499966cbea34408f43c3a3dad6ad385df8f 100644 (file)
@@ -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: 1000)
+    |> validate_length(:bio, max: 5000)
     |> validate_length(:name, min: 1, max: 100)
   end
 
     |> validate_length(:name, min: 1, max: 100)
   end