[chore] return correct error message (#4377)

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4377
Co-authored-by: nicole mikołajczyk <git@mkljczk.pl>
Co-committed-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2025-08-14 12:17:42 +02:00 committed by kim
commit 8e76c9ab57
3 changed files with 3 additions and 3 deletions

View file

@ -11064,7 +11064,6 @@ paths:
tags:
- scheduled_statuses
put:
description: Update a scheduled status's publishing date
operationId: updateScheduledStatus
parameters:
- description: ID of the status
@ -11103,6 +11102,7 @@ paths:
security:
- OAuth2 Bearer:
- write:statuses
summary: Update a scheduled status's publishing date.
tags:
- scheduled_statuses
/api/v1/statuses:

View file

@ -30,7 +30,7 @@ import (
// ScheduledStatusPUTHandler swagger:operation PUT /api/v1/scheduled_statuses/{id} updateScheduledStatus
//
// Update a scheduled status's publishing date
// Update a scheduled status's publishing date.
//
// ---
// tags:

View file

@ -272,7 +272,7 @@ func (s *scheduledStatusDB) PutScheduledStatus(ctx context.Context, status *gtsm
if _, err := tx.NewInsert().
Model(status).
Exec(ctx); err != nil {
return gtserror.Newf("error selecting boosted status: %w", err)
return gtserror.Newf("error inserting scheduled status: %w", err)
}
// change the scheduled status ID of the