mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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")
|
@discourseComputed("fancy_title")
|
||||||
fancyTitle(title) {
|
fancyTitle(title) {
|
||||||
let fancyTitle = censor(
|
let fancyTitle = censor(
|
||||||
emojiUnescape(title || ""),
|
emojiUnescape(title) || "",
|
||||||
Site.currentProp("censored_regexp")
|
Site.currentProp("censored_regexp")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user