We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2e741 commit 92e0fc5Copy full SHA for 92e0fc5
1 file changed
app/helpers/posts_helper.rb
@@ -91,7 +91,7 @@ def initialize
91
attrs = []
92
tags = []
93
94
- allowed_types = SiteSetting['AllowedPostTitleFormattingTypes']
+ allowed_types = SiteSetting['AllowedPostTitleFormattingTypes'] || []
95
tags.push('del', 'strike') if allowed_types.include?('strikethrough')
96
tags << 'code' if allowed_types.include?('code')
97
tags << 'kbd' if allowed_types.include?('keyboard')
0 commit comments