Format
authorMaxim Filippov <colixer@gmail.com>
Sun, 22 Sep 2019 20:13:48 +0000 (23:13 +0300)
committerMaxim Filippov <colixer@gmail.com>
Sun, 22 Sep 2019 20:13:48 +0000 (23:13 +0300)
lib/pleroma/user/info.ex

index 67abc3ecdc4052d0790b6fc67b1d50975db90151..99745f496d64bb728fbfd419210d65d2dbad0311 100644 (file)
@@ -342,7 +342,9 @@ defmodule Pleroma.User.Info do
     name_limit = Pleroma.Config.get([:instance, :account_field_name_length], 255)
     value_limit = Pleroma.Config.get([:instance, :account_field_value_length], 255)
 
-    is_binary(name) && is_binary(value) && String.length(name) <= name_limit &&
+    is_binary(name) &&
+      is_binary(value) &&
+      String.length(name) <= name_limit &&
       String.length(value) <= value_limit
   end