nicolium: provide data used by Readability.js
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -551,7 +551,7 @@ const Status: React.FC<IStatus> = (props) => {
|
||||
handlers={minHandlers}
|
||||
focusable={focusable}
|
||||
element='article'
|
||||
lang={actualStatus.language}
|
||||
lang={actualStatus.language || undefined}
|
||||
>
|
||||
{body}
|
||||
</Hotkeys>
|
||||
@ -667,7 +667,7 @@ const Status: React.FC<IStatus> = (props) => {
|
||||
handlers={handlers}
|
||||
focusable={focusable}
|
||||
element='article'
|
||||
lang={actualStatus.language}
|
||||
lang={actualStatus.language || undefined}
|
||||
data-testid='status'
|
||||
>
|
||||
{body}
|
||||
|
||||
@ -248,7 +248,7 @@ const Thread = ({
|
||||
deleted
|
||||
/>
|
||||
) : (
|
||||
<Hotkeys handlers={handlers} element='article' lang={status.language}>
|
||||
<Hotkeys handlers={handlers} element='article' lang={status.language || undefined}>
|
||||
<div
|
||||
ref={statusRef}
|
||||
className='relative'
|
||||
@ -357,11 +357,16 @@ const Thread = ({
|
||||
'mt-2': !isModal,
|
||||
})}
|
||||
>
|
||||
{status.account.local === false && (
|
||||
<Helmet>
|
||||
<meta content='noindex, noarchive' name='robots' />
|
||||
</Helmet>
|
||||
)}
|
||||
<Helmet>
|
||||
{status.spoiler_text && <meta property='og:title' content={status.spoiler_text} />}
|
||||
<meta property='og:url' content={status.url} />
|
||||
<meta name='author' content={status.account.display_name || status.account.acct} />
|
||||
<meta property='article:author' content={status.account.url} />
|
||||
<meta property='article:published_time' content={status.created_at} />
|
||||
{status.edited_at && <meta property='article:modified_time' content={status.edited_at} />}
|
||||
|
||||
{status.account.local === false && <meta content='noindex, noarchive' name='robots' />}
|
||||
</Helmet>
|
||||
|
||||
<div
|
||||
ref={node}
|
||||
|
||||
Reference in New Issue
Block a user