mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:18:06 +08:00
FIX: ensures censor has always at least an empty string to handle (#8442)
This commit is contained in:
parent
580b289861
commit
3cf4ba5069
|
@ -110,7 +110,7 @@ const Topic = RestModel.extend({
|
|||
@discourseComputed("fancy_title")
|
||||
fancyTitle(title) {
|
||||
let fancyTitle = censor(
|
||||
emojiUnescape(title || ""),
|
||||
emojiUnescape(title) || "",
|
||||
Site.currentProp("censored_regexp")
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user