mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore/frontend] Refactor status templates slightly, put polls behind CWs if present (#2419)
* [chore/frontend] Reorder templates, allow polls to be inside content warnings * show when multiple-choice
This commit is contained in:
@@ -721,6 +721,12 @@ func (c *Converter) StatusToWebStatus(
|
||||
webStatus.WebPollOptions = webPollOptions
|
||||
}
|
||||
|
||||
// Set additional templating
|
||||
// variables on media attachments.
|
||||
for _, a := range webStatus.MediaAttachments {
|
||||
a.Sensitive = webStatus.Sensitive
|
||||
}
|
||||
|
||||
return webStatus, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user