mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 14:53:33 -06:00
[chore] Add interaction policy gtsmodels (#3075)
* [chore] introduce interaction policy gts models * update migration a smidge * fix copy paste typo * update migration * use int for InteractionType
This commit is contained in:
parent
8f8093aea4
commit
5bc567196b
46 changed files with 1318 additions and 531 deletions
|
|
@ -44,9 +44,6 @@ func (suite *StatusTestSuite) TestGetStatusByID() {
|
|||
suite.Nil(status.InReplyTo)
|
||||
suite.Nil(status.InReplyToAccount)
|
||||
suite.True(*status.Federated)
|
||||
suite.True(*status.Boostable)
|
||||
suite.True(*status.Replyable)
|
||||
suite.True(*status.Likeable)
|
||||
}
|
||||
|
||||
func (suite *StatusTestSuite) TestGetStatusesByIDs() {
|
||||
|
|
@ -73,9 +70,6 @@ func (suite *StatusTestSuite) TestGetStatusesByIDs() {
|
|||
suite.Nil(status1.InReplyTo)
|
||||
suite.Nil(status1.InReplyToAccount)
|
||||
suite.True(*status1.Federated)
|
||||
suite.True(*status1.Boostable)
|
||||
suite.True(*status1.Replyable)
|
||||
suite.True(*status1.Likeable)
|
||||
|
||||
status2 := statuses[1]
|
||||
suite.NotNil(status2)
|
||||
|
|
@ -86,9 +80,6 @@ func (suite *StatusTestSuite) TestGetStatusesByIDs() {
|
|||
suite.Nil(status2.InReplyTo)
|
||||
suite.Nil(status2.InReplyToAccount)
|
||||
suite.True(*status2.Federated)
|
||||
suite.True(*status2.Boostable)
|
||||
suite.False(*status2.Replyable)
|
||||
suite.False(*status2.Likeable)
|
||||
}
|
||||
|
||||
func (suite *StatusTestSuite) TestGetStatusByURI() {
|
||||
|
|
@ -104,9 +95,6 @@ func (suite *StatusTestSuite) TestGetStatusByURI() {
|
|||
suite.Nil(status.InReplyTo)
|
||||
suite.Nil(status.InReplyToAccount)
|
||||
suite.True(*status.Federated)
|
||||
suite.True(*status.Boostable)
|
||||
suite.False(*status.Replyable)
|
||||
suite.False(*status.Likeable)
|
||||
}
|
||||
|
||||
func (suite *StatusTestSuite) TestGetStatusWithExtras() {
|
||||
|
|
@ -121,9 +109,6 @@ func (suite *StatusTestSuite) TestGetStatusWithExtras() {
|
|||
suite.NotEmpty(status.Attachments)
|
||||
suite.NotEmpty(status.Emojis)
|
||||
suite.True(*status.Federated)
|
||||
suite.True(*status.Boostable)
|
||||
suite.True(*status.Replyable)
|
||||
suite.True(*status.Likeable)
|
||||
}
|
||||
|
||||
func (suite *StatusTestSuite) TestGetStatusWithMention() {
|
||||
|
|
@ -138,9 +123,6 @@ func (suite *StatusTestSuite) TestGetStatusWithMention() {
|
|||
suite.NotEmpty(status.InReplyToID)
|
||||
suite.NotEmpty(status.InReplyToAccountID)
|
||||
suite.True(*status.Federated)
|
||||
suite.True(*status.Boostable)
|
||||
suite.True(*status.Replyable)
|
||||
suite.True(*status.Likeable)
|
||||
}
|
||||
|
||||
// The below test was originally used to ensure that a second
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue