mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: new site setting 'max_emojis_in_title'
This commit is contained in:
@@ -84,6 +84,7 @@ class Topic < ActiveRecord::Base
|
||||
topic_title_length: true,
|
||||
censored_words: true,
|
||||
quality_title: { unless: :private_message? },
|
||||
max_emojis: true,
|
||||
unique_among: { unless: Proc.new { |t| (SiteSetting.allow_duplicate_topic_titles? || t.private_message?) },
|
||||
message: :has_already_been_used,
|
||||
allow_blank: true,
|
||||
|
||||
Reference in New Issue
Block a user