mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-19 16:47:29 -06:00
fiddle de deee
This commit is contained in:
parent
2497a4d596
commit
1092bc4f54
2 changed files with 12 additions and 16 deletions
|
|
@ -312,11 +312,9 @@ func (p *Processor) Edit(
|
|||
// Only store ContentWarningText if the parsed
|
||||
// result is different from the given SpoilerText,
|
||||
// otherwise skip to avoid duplicating db columns.
|
||||
var contentWarningText string
|
||||
if content.ContentWarning != form.SpoilerText {
|
||||
contentWarningText = form.SpoilerText
|
||||
status.ContentWarningText = form.SpoilerText
|
||||
}
|
||||
status.ContentWarningText = contentWarningText // raw
|
||||
|
||||
if poll != nil {
|
||||
// Set relevent fields for latest with poll.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue