mirror of
https://github.com/discourse/discourse-signatures.git
synced 2025-12-12 18:03:31 +00:00
Merge pull request from GHSA-mvm7-38pf-q9fv
This commit is contained in:
parent
4fc0ddba24
commit
54dabc036c
@ -14,9 +14,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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user