diff options
| author | 2025-08-14 12:17:42 +0200 | |
|---|---|---|
| committer | 2025-08-14 12:17:42 +0200 | |
| commit | 8e76c9ab57de618e40149a2475e83592f7cbd3b8 (patch) | |
| tree | 100ce447cf56e399025e416ad2eb2eed368ab420 | |
| parent | [feature] support blur filter action (#4371) (diff) | |
| download | gotosocial-8e76c9ab57de618e40149a2475e83592f7cbd3b8.tar.xz | |
[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>
| -rw-r--r-- | docs/api/swagger.yaml | 2 | ||||
| -rw-r--r-- | internal/api/client/scheduledstatuses/scheduledstatusput.go | 2 | ||||
| -rw-r--r-- | internal/db/bundb/scheduledstatus.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index c889c92e8..6ee4db4ab 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -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: diff --git a/internal/api/client/scheduledstatuses/scheduledstatusput.go b/internal/api/client/scheduledstatuses/scheduledstatusput.go index f037716e7..7b458a8d2 100644 --- a/internal/api/client/scheduledstatuses/scheduledstatusput.go +++ b/internal/api/client/scheduledstatuses/scheduledstatusput.go @@ -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: diff --git a/internal/db/bundb/scheduledstatus.go b/internal/db/bundb/scheduledstatus.go index 44cbd0f59..e1e374d4e 100644 --- a/internal/db/bundb/scheduledstatus.go +++ b/internal/db/bundb/scheduledstatus.go @@ -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 |
