Skip to content

Commit

Permalink
Merge pull request from GHSA-mvm7-38pf-q9fv
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwaterworth authored Jan 8, 2024
1 parent f31600f commit edcf489
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
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
Expand Down

0 comments on commit edcf489

Please sign in to comment.