From edcf489ddfc19b7cfddf51c829d5d913c7a9a3d6 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Mon, 8 Jan 2024 15:40:10 -0600 Subject: [PATCH] Merge pull request from GHSA-mvm7-38pf-q9fv --- plugin.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.rb b/plugin.rb index 67dbe47..5ad4346 100644 --- a/plugin.rb +++ b/plugin.rb @@ -15,9 +15,9 @@ DiscoursePluginRegistry.serialized_current_user_fields << "signature_url" DiscoursePluginRegistry.serialized_current_user_fields << "signature_raw" after_initialize do - User.register_custom_field_type("see_signatures", :boolean) - User.register_custom_field_type("signature_url", :text) - User.register_custom_field_type("signature_raw", :text) + register_user_custom_field_type("see_signatures", :boolean) + register_user_custom_field_type("signature_url", :string, max_length: 32000) + register_user_custom_field_type("signature_raw", :string, max_length: 1000) # add to class and serializer to allow for default value for the setting add_to_class(:user, :see_signatures) do