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/configuration/instance.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/configuration') diff --git a/docs/configuration/instance.md b/docs/configuration/instance.md index bffec8f70..2a945eed2 100644 --- a/docs/configuration/instance.md +++ b/docs/configuration/instance.md @@ -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 ``` -- cgit v1.2.3