mirror of
https://github.com/discourse/discourse.git
synced 2025-05-03 09:34:47 +08:00
FIX: prevents crash when to be unescaped emoji is not a string (#9189)
I couldn't get a repro so this is a shot in the dark and doesn't solve the root issue, but should prevent topic view from crashing.
This commit is contained in:
parent
8290856a4b
commit
d2bb127e2c
@ -92,7 +92,7 @@ function isReplacableInlineEmoji(string, index, inlineEmoji) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function performEmojiUnescape(string, opts) {
|
export function performEmojiUnescape(string, opts) {
|
||||||
if (!string) {
|
if (!string || typeof string !== "string") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user