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 --- internal/federation/dereferencing/instance_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/federation/dereferencing/instance_test.go') diff --git a/internal/federation/dereferencing/instance_test.go b/internal/federation/dereferencing/instance_test.go index 15f075479..c07490d4b 100644 --- a/internal/federation/dereferencing/instance_test.go +++ b/internal/federation/dereferencing/instance_test.go @@ -50,7 +50,7 @@ func (suite *InstanceTestSuite) TestDerefInstance() { // // Debug-level logs should show something like: // - // - "can't fetch /nodeinfo/2.1: robots.txt disallows it" + // - "can't fetch /nodeinfo/2.1: robots.txt disallows it" instanceIRI: testrig.URLMustParse("https://furtive-nerds.example.org"), expectedSoftware: "", }, @@ -60,7 +60,7 @@ func (suite *InstanceTestSuite) TestDerefInstance() { // // Debug-level logs should show something like: // - // - "can't fetch api/v1/instance: robots.txt disallows it" + // - "can't fetch api/v1/instance: robots.txt disallows it" // - "can't fetch .well-known/nodeinfo: robots.txt disallows it" instanceIRI: testrig.URLMustParse("https://robotic.furtive-nerds.example.org"), expectedSoftware: "", @@ -71,7 +71,7 @@ func (suite *InstanceTestSuite) TestDerefInstance() { // // Debug-level logs should show something like: // - // - "can't use fetched .well-known/nodeinfo: robots tags disallows it" + // - "can't use fetched .well-known/nodeinfo: robots tags disallows it" instanceIRI: testrig.URLMustParse("https://really.furtive-nerds.example.org"), expectedSoftware: "", }, -- cgit v1.2.3