discourse/lib/validators
Osama Sayegh 2d391565e4
FIX: Skip quality title validations for static topics when edited by admin (#18468)
Static topics are the seeded topics that are automatically created for every Discourse instance to hold the content for the FAQ, ToS and Privacy pages. These topics are allowed to bypass the minimum title length checks when they're edited by admins:

ba27ee1637/app/assets/javascripts/discourse/app/models/composer.js (L487-L496)

However, on the server-side, the "quality title" validations aren't skipped for static topics and that can cause confusion for admins when they change the title of a static topic to something that's short enough to fail the quality title validations. This commit ignores all quality title validations on static topics when they're edited by admins.

Internal topic: t/75745.
2022-10-04 21:55:21 +03:00
..
allow_user_locale_enabled_validator.rb
allowed_ip_address_validator.rb
alternative_reply_by_email_addresses_validator.rb
categories_topics_validator.rb
category_search_priority_weights_validator.rb FEATURE: Change very high/low search priority to rank at absolute ends. 2021-03-09 09:20:37 +08:00
censored_words_validator.rb FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
color_list_validator.rb
css_color_validator.rb FIX: Validate email_accent_bg_color color (#13778) 2021-07-22 17:42:47 +03:00
delete_rejected_email_after_days_validator.rb FIX: Rejected emails should not be cleaned up before their logs (#17648) 2022-07-27 07:28:44 +01:00
email_address_validator.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
email_setting_validator.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
email_validator.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
enable_invite_only_validator.rb FEATURE: Rename 'Discourse SSO' to DiscourseConnect (#11978) 2021-02-08 10:04:33 +00:00
enable_local_logins_via_email_validator.rb
enable_private_email_messages_validator.rb
enable_sso_validator.rb FIX: Check 2FA is disabled before enabling DiscourseConnect. (#16542) 2022-04-25 14:49:36 -03:00
external_system_avatars_validator.rb
google_oauth2_hd_groups_validator.rb FEATURE: Experimental support for group membership via google auth (#14835) 2021-12-09 12:30:27 +00:00
group_setting_validator.rb
host_list_setting_validator.rb FEATURE: Validate domain settings for blocked_onebox_domain only (#15754) 2022-02-03 11:26:53 +08:00
integer_setting_validator.rb
ip_address_format_validator.rb
markdown_linkify_tlds_validator.rb validate markdown_linkify_tlds setting (#16485) 2022-04-15 10:14:28 -05:00
markdown_typographer_quotation_marks_validator.rb
max_emojis_validator.rb
max_username_length_validator.rb FIX: min/max username length limits weren't validated (#17382) 2022-07-08 12:00:47 -03:00
min_username_length_validator.rb FIX: min/max username length limits weren't validated (#17382) 2022-07-08 12:00:47 -03:00
not_username_validator.rb FEATURE: Mention @here to notify users in topic (#14900) 2021-11-23 22:25:54 +02:00
password_validator.rb
personal_message_enabled_groups_validator.rb FEATURE: Introduce personal_message_enabled_groups setting (#18042) 2022-09-26 13:58:40 +10:00
pop3_polling_enabled_setting_validator.rb DEV: Use EmailSettingsValidator in more places (#15404) 2022-01-04 08:30:48 +10:00
post_validator.rb FEATURE: Allow category moderators to post consecutively (#16706) 2022-05-10 22:18:17 +03:00
quality_title_validator.rb FIX: Skip quality title validations for static topics when edited by admin (#18468) 2022-10-04 21:55:21 +03:00
regex_presence_validator.rb
regex_setting_validation.rb
regex_setting_validator.rb
regexp_list_validator.rb FIX: Validate permalink_normalizations setting (#16604) 2022-05-04 14:33:06 +03:00
reply_by_email_address_validator.rb FIX: ReplyByEmailAddressValidator should leverage EmailAddressValidator 2022-02-17 21:49:22 -05:00
reply_by_email_enabled_validator.rb
search_tokenize_chinese_validator.rb FEATURE: Split up text segmentation for Chinese and Japanese. 2022-02-07 09:21:14 +08:00
search_tokenize_japanese_validator.rb FEATURE: Split up text segmentation for Chinese and Japanese. 2022-02-07 09:21:14 +08:00
selectable_avatars_mode_validator.rb FEATURE: upload an avatar option for uploading avatars with selectable avatars (#15878) 2022-02-24 12:57:39 -08:00
sso_overrides_email_validator.rb
string_setting_validator.rb DEV: Add experimental json_scheme site setting type (#12226) 2021-03-01 09:15:17 -05:00
stripped_length_validator.rb FIX: post merging was failing silently (#12566) 2021-04-01 06:46:18 +05:30
timezone_validator.rb
topic_title_length_validator.rb
unicode_username_allowlist_validator.rb
unicode_username_validator.rb
unique_among_validator.rb DEV: Upgrade Rails to 6.1.3.1 (#12688) 2021-04-21 12:36:32 +03:00
upload_validator.rb DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
url_validator.rb
user_full_name_validator.rb
username_setting_validator.rb
watched_words_validator.rb SECURITY: Escape watched word in error message (#14434) 2021-09-24 11:55:15 +03:00