migration bio fix

This commit is contained in:
tonyrewin 2022-11-18 08:52:42 +03:00
parent e39414d975
commit f733195aa7

View File

@ -30,11 +30,7 @@ export const AuthorCard = (props: AuthorCardProps) => {
() => session()?.news?.authors?.some((u) => u === props.author.slug) || false
)
const canFollow = createMemo(() => !props.hideFollow && session()?.user?.slug !== props.author.slug)
const bio = () => {
const d = document.createElement('div')
d.innerHTML = props.author.bio
return d.innerText || t('Our regular contributor')
}
const bio = () => props.author.bio || t('Our regular contributor')
const name = () => {
return props.author.name === 'Дискурс' && locale() !== 'ru'
? 'Discours'