1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-12-17 23:21:56 +01:00
parent 3691b19a87
commit c59690fcb9
9 changed files with 65 additions and 41 deletions

View File

@ -64,6 +64,7 @@ const TimelineDefault: React.FC<Props> = ({
content: '',
complete: false
})
const detectedLanguage = useRef<string>(status.language || '')
const filtered = queryKey && shouldFilter({ copiableContent, status, queryKey })
if (queryKey && filtered && !highlighted) {
@ -139,6 +140,7 @@ const TimelineDefault: React.FC<Props> = ({
ownAccount,
spoilerHidden,
copiableContent,
detectedLanguage,
highlighted,
inThread: queryKey?.[1].page === 'Toot',
disableDetails,