FIX: ensures censor has always at least an empty string to handle (#8442)

This commit is contained in:
Joffrey JAFFEUX 2019-12-02 10:24:07 +01:00 committed by GitHub
parent 580b289861
commit 3cf4ba5069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ const Topic = RestModel.extend({
@discourseComputed("fancy_title")
fancyTitle(title) {
let fancyTitle = censor(
emojiUnescape(title || ""),
emojiUnescape(title) || "",
Site.currentProp("censored_regexp")
);