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

View file

@ -30,7 +30,7 @@ import (
// ScheduledStatusPUTHandler swagger:operation PUT /api/v1/scheduled_statuses/{id} updateScheduledStatus // 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: // tags:

View file

@ -272,7 +272,7 @@ func (s *scheduledStatusDB) PutScheduledStatus(ctx context.Context, status *gtsm
if _, err := tx.NewInsert(). if _, err := tx.NewInsert().
Model(status). Model(status).
Exec(ctx); err != nil { 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 // change the scheduled status ID of the