mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 05:42:25 -05:00
[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
This commit is contained in:
parent
37dbf319b1
commit
fccb0bc102
18 changed files with 515 additions and 42 deletions
|
|
@ -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.
|
||||
Must be at least 5 minutes in the future.
|
||||
|
||||
This feature isn't implemented yet; attemping to set it will return 501 Not Implemented.
|
||||
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.
|
||||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -171,4 +171,17 @@ instance-subscriptions-process-every: "24h"
|
|||
# Options: ["", "zero", "serve", "baffle"]
|
||||
# Default: ""
|
||||
instance-stats-mode: ""
|
||||
|
||||
# Bool. This flag controls whether local accounts may backdate statuses
|
||||
# using past dates with the scheduled_at param to /api/v1/statuses.
|
||||
# This flag does not affect scheduling posts in the future
|
||||
# (which is currently not implemented anyway),
|
||||
# nor can it prevent remote accounts from backdating their own statuses.
|
||||
#
|
||||
# If true, all local accounts may backdate statuses.
|
||||
# If false, status backdating will be disabled and an error will be returned if it's used.
|
||||
#
|
||||
# Options: [true, false]
|
||||
# Default: true
|
||||
instance-allow-backdating-statuses: true
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue