mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 08:56:15 -06:00
Return a value from processContentType instead of modifying the existing status
Fixes an issue that was caught by the test I just added - the recorded edit would be marked with the *new* content type instead of the old one, which is obviously bad
This commit is contained in:
parent
8634358278
commit
921ba6481b
3 changed files with 19 additions and 23 deletions
|
|
@ -81,7 +81,7 @@ func (p *Processor) Create(
|
|||
content, errWithCode := p.processContent(ctx,
|
||||
requester,
|
||||
statusID,
|
||||
contentType,
|
||||
typeutils.APIContentTypeToContentType(contentType),
|
||||
form.Status,
|
||||
form.SpoilerText,
|
||||
form.Language,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue