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:
ewin 2025-03-05 13:19:39 -05:00
commit 921ba6481b
No known key found for this signature in database
3 changed files with 19 additions and 23 deletions

View file

@ -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,