mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-14 00:57:28 -06:00
[bugfix] Check media-description-min-chars on submission of new status (#960)
This commit is contained in:
parent
fc9038d8e4
commit
15be35673e
4 changed files with 56 additions and 7 deletions
|
|
@ -64,8 +64,8 @@ func (p *processor) Create(ctx context.Context, account *gtsmodel.Account, appli
|
|||
return nil, errWithCode
|
||||
}
|
||||
|
||||
if err := p.ProcessMediaIDs(ctx, form, account.ID, newStatus); err != nil {
|
||||
return nil, gtserror.NewErrorInternalError(err)
|
||||
if errWithCode := p.ProcessMediaIDs(ctx, form, account.ID, newStatus); errWithCode != nil {
|
||||
return nil, errWithCode
|
||||
}
|
||||
|
||||
if err := p.ProcessVisibility(ctx, form, account.Privacy, newStatus); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue