import { h } from 'preact'; import { articlePropTypes, organizationPropType, } from '../../common-prop-types'; import { MinimalProfilePreviewCard } from '../../profilePreviewCards/MinimalProfilePreviewCard'; import { PublishDate } from './PublishDate'; export const Meta = ({ article, organization }) => { const orgArticleIndexClassAbsent = !document.getElementById( 'organization-article-index', ); return (
{filterXSS(
article.class_name === 'User'
? article.user.username
: article.user.name,
)}