Fix some posts can be spoiler but sensitive: false

This commit is contained in:
Lim Chee Aun 2023-02-06 00:19:22 +08:00
parent a130743d4c
commit de411b4dff

View file

@ -316,9 +316,9 @@ function Status({
</> </>
)} )}
<div <div
class={`content-container ${ class={`content-container ${spoilerText ? 'has-spoiler' : ''} ${
sensitive || spoilerText ? 'has-spoiler' : '' showSpoiler ? 'show-spoiler' : ''
} ${showSpoiler ? 'show-spoiler' : ''}`} }`}
style={ style={
size === 'l' && { size === 'l' && {
'--content-text-weight': '--content-text-weight':
@ -328,7 +328,7 @@ function Status({
} }
} }
> >
{!!spoilerText && sensitive && ( {!!spoilerText && (
<> <>
<div <div
class="content" class="content"