mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 02:22:26 -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
|
|
@ -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: "",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue