mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-04 10:08:08 -06: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:
parent
18d850ebae
commit
dacfd413dc
6 changed files with 245 additions and 180 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue