1
0
mirror of synced 2026-05-22 22:13:15 +00:00

DEV: Allow a longer signature

This commit is contained in:
Nat
2024-10-28 20:31:10 +08:00
parent b13c2f2d63
commit a8bb1af029
+1 -1
View File
@@ -16,7 +16,7 @@ DiscoursePluginRegistry.serialized_current_user_fields << "signature_raw"
after_initialize do
register_user_custom_field_type("see_signatures", :boolean)
register_user_custom_field_type("signature_url", :string, max_length: 32_000)
register_user_custom_field_type("signature_raw", :string, max_length: 1000)
register_user_custom_field_type("signature_raw", :string, max_length: 10_000)
# add to class and serializer to allow for default value for the setting
add_to_class(:user, :see_signatures) do