fix(frontend): fix of 30efd932a5
This commit is contained in:
parent
93d3501c90
commit
721cbe085b
|
@ -60,7 +60,7 @@ export default function(props: {
|
||||||
switch (token.type) {
|
switch (token.type) {
|
||||||
case 'text': {
|
case 'text': {
|
||||||
let text = token.props.text.replace(/(\r\n|\n|\r)/g, '\n');
|
let text = token.props.text.replace(/(\r\n|\n|\r)/g, '\n');
|
||||||
if (!disableNyaize && props.author.isCat) {
|
if (!disableNyaize && props.author?.isCat) {
|
||||||
text = nyaize(text);
|
text = nyaize(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue