mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 23:32:24 -05:00
[feature] Process Reject of interaction via fedi API, put rejected statuses in the "sin bin" 😈 (#3271)
* [feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin" * update test * move nil check back to `rejectStatusIRI`
This commit is contained in:
parent
3254ef1923
commit
307d98e386
21 changed files with 1172 additions and 115 deletions
|
|
@ -71,6 +71,16 @@ func (suite *RejectTestSuite) TestReject() {
|
|||
)
|
||||
return status == nil && errors.Is(err, db.ErrNoEntries)
|
||||
})
|
||||
|
||||
// Wait for a copy of the status
|
||||
// to be hurled into the sin bin.
|
||||
testrig.WaitFor(func() bool {
|
||||
sbStatus, err := state.DB.GetSinBinStatusByURI(
|
||||
gtscontext.SetBarebones(ctx),
|
||||
dbReq.InteractionURI,
|
||||
)
|
||||
return err == nil && sbStatus != nil
|
||||
})
|
||||
}
|
||||
|
||||
func TestRejectTestSuite(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue