Don't compact spoiler post if from different author

This commit is contained in:
Lim Chee Aun 2023-10-04 08:31:40 +08:00
parent 9885c8f388
commit d429ef9161

View file

@ -412,7 +412,7 @@ function Timeline({
const isMiddle = i > 0 && i < items.length - 1; const isMiddle = i > 0 && i < items.length - 1;
const isSpoiler = item.sensitive && !!item.spoilerText; const isSpoiler = item.sensitive && !!item.spoilerText;
const showCompact = const showCompact =
(isSpoiler && i > 0) || (!_differentAuthor && isSpoiler && i > 0) ||
(manyItems && (manyItems &&
isMiddle && isMiddle &&
(type === 'thread' || (type === 'thread' ||