mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:26:16 -06:00
peepeepoopoo
This commit is contained in:
parent
e9bb7ddd3a
commit
bb0395de08
81 changed files with 2932 additions and 601 deletions
|
|
@ -20,6 +20,7 @@ package typeutils_test
|
|||
import (
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/superseriousbusiness/activity/streams/vocab"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/actions"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
|
|
@ -499,6 +500,7 @@ func (suite *TypeUtilsTestSuite) SetupTest() {
|
|||
|
||||
suite.db = testrig.NewTestDB(&suite.state)
|
||||
suite.state.DB = suite.db
|
||||
suite.state.Actions = actions.New(suite.state.DB, &suite.state.Workers)
|
||||
storage := testrig.NewInMemoryStorage()
|
||||
suite.state.Storage = storage
|
||||
|
||||
|
|
|
|||
|
|
@ -2121,7 +2121,9 @@ func (c *Converter) DomainPermToAPIDomainPerm(
|
|||
domainPerm.PrivateComment = d.GetPrivateComment()
|
||||
domainPerm.SubscriptionID = d.GetSubscriptionID()
|
||||
domainPerm.CreatedBy = d.GetCreatedByAccountID()
|
||||
domainPerm.CreatedAt = util.FormatISO8601(d.GetCreatedAt())
|
||||
if createdAt := d.GetCreatedAt(); !createdAt.IsZero() {
|
||||
domainPerm.CreatedAt = util.FormatISO8601(createdAt)
|
||||
}
|
||||
|
||||
// If this is a draft, also add the permission type.
|
||||
if _, ok := d.(*gtsmodel.DomainPermissionDraft); ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue