From fccb0bc102f2a54a21eed343cda64f9a5221b677 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Wed, 12 Feb 2025 09:49:33 -0800 Subject: [feature] Implement backfilling statuses thru scheduled_at (#3685) * Implement backfilling statuses thru scheduled_at * Forbid mentioning others in backfills * Update error messages & codes * Add new tests for backfilled statuses * Test that backfilling doesn't timeline or notify * Fix check for absence of notification * Test that backfills do not cause federation * Fix type of apimodel.StatusCreateRequest.ScheduledAt in tests * Add config file switch and min date check --- docs/api/swagger.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/api') diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index df8f09321..836df83e8 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -10397,10 +10397,14 @@ paths: x-go-name: Federated - description: |- ISO 8601 Datetime at which to schedule a status. - Providing this parameter will cause ScheduledStatus to be returned instead of Status. + + Providing this parameter with a *future* time will cause ScheduledStatus to be returned instead of Status. Must be at least 5 minutes in the future. + This feature isn't implemented yet. - This feature isn't implemented yet; attemping to set it will return 501 Not Implemented. + Providing this parameter with a *past* time will cause the status to be backdated, + and will not push it to the user's followers. This is intended for importing old statuses. + format: date-time in: formData name: scheduled_at type: string -- cgit v1.2.3