mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Use null for empty api status language
(#1268)
* [bugfix] Use null for empty api status `language` * update swagger docs
This commit is contained in:
@ -107,7 +107,9 @@ func (og *ogMeta) withStatus(status *apimodel.Status) *ogMeta {
|
||||
og.Description = parseDescription(status.Text)
|
||||
}
|
||||
|
||||
og.Locale = status.Language
|
||||
if status.Language != nil {
|
||||
og.Locale = *status.Language
|
||||
}
|
||||
og.ResourceType = "article"
|
||||
og.Title = "Post by " + parseTitle(status.Account, og.SiteName)
|
||||
og.URL = status.URL
|
||||
|
Reference in New Issue
Block a user