[bugfix] Fix invalid og:description on account w/ empty note (#1733)

This commit is contained in:
tobi
2023-05-03 16:18:34 +02:00
committed by GitHub
parent c41c1f90a6
commit a6ec2a5bc2
2 changed files with 68 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (og *ogMeta) withAccount(account *apimodel.Account) *ogMeta {
if account.Note != "" {
og.Description = parseDescription(account.Note)
} else {
og.Description = "This GoToSocial user hasn't written a bio yet!"
og.Description = `content="This GoToSocial user hasn't written a bio yet!"`
}
og.Image = account.Avatar