summaryrefslogtreecommitdiff
path: root/testrig/testmodels.go
diff options
context:
space:
mode:
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r--testrig/testmodels.go488
1 files changed, 232 insertions, 256 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go
index 1a5264db3..fd26b514e 100644
--- a/testrig/testmodels.go
+++ b/testrig/testmodels.go
@@ -40,33 +40,9 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/transport"
+ "github.com/superseriousbusiness/gotosocial/internal/util"
)
-// TrueBool just returns a pointer to boolean true.
-func TrueBool() *bool {
- b := new(bool)
- *b = true
- return b
-}
-
-// FalseBool just returns a pointer to boolean false.
-func FalseBool() *bool {
- return new(bool)
-}
-
-// StringPtr returns a pointer to the given string.
-func StringPtr(in string) *string {
- return &in
-}
-
-func Float32Ptr(in float32) *float32 {
- return &in
-}
-
-func Uint64Ptr(in uint64) *uint64 {
- return &in
-}
-
// NewTestTokens returns a map of tokens keyed according to which account the token belongs to.
func NewTestTokens() map[string]*gtsmodel.Token {
tokens := map[string]*gtsmodel.Token{
@@ -206,10 +182,10 @@ func NewTestUsers() map[string]*gtsmodel.User {
ConfirmedAt: time.Time{},
ConfirmationSentAt: TimeMustParse("2022-06-04T13:12:00Z"),
UnconfirmedEmail: "weed_lord420@example.org",
- Moderator: FalseBool(),
- Admin: FalseBool(),
- Disabled: FalseBool(),
- Approved: FalseBool(),
+ Moderator: util.Ptr(false),
+ Admin: util.Ptr(false),
+ Disabled: util.Ptr(false),
+ Approved: util.Ptr(false),
ResetPasswordToken: "",
ResetPasswordSentAt: time.Time{},
},
@@ -236,10 +212,10 @@ func NewTestUsers() map[string]*gtsmodel.User {
ConfirmedAt: TimeMustParse("2022-06-02T13:12:00Z"),
ConfirmationSentAt: time.Time{},
UnconfirmedEmail: "",
- Moderator: TrueBool(),
- Admin: TrueBool(),
- Disabled: FalseBool(),
- Approved: TrueBool(),
+ Moderator: util.Ptr(true),
+ Admin: util.Ptr(true),
+ Disabled: util.Ptr(false),
+ Approved: util.Ptr(true),
ResetPasswordToken: "",
ResetPasswordSentAt: time.Time{},
},
@@ -266,10 +242,10 @@ func NewTestUsers() map[string]*gtsmodel.User {
ConfirmedAt: TimeMustParse("2022-06-02T13:12:00Z"),
ConfirmationSentAt: TimeMustParse("2022-06-02T13:12:00Z"),
UnconfirmedEmail: "",
- Moderator: FalseBool(),
- Admin: FalseBool(),
- Disabled: FalseBool(),
- Approved: TrueBool(),
+ Moderator: util.Ptr(false),
+ Admin: util.Ptr(false),
+ Disabled: util.Ptr(false),
+ Approved: util.Ptr(true),
ResetPasswordToken: "",
ResetPasswordSentAt: time.Time{},
},
@@ -296,10 +272,10 @@ func NewTestUsers() map[string]*gtsmodel.User {
ConfirmedAt: TimeMustParse("2022-05-24T13:12:00Z"),
ConfirmationSentAt: TimeMustParse("2022-05-23T13:12:00Z"),
UnconfirmedEmail: "",
- Moderator: FalseBool(),
- Admin: FalseBool(),
- Disabled: FalseBool(),
- Approved: TrueBool(),
+ Moderator: util.Ptr(false),
+ Admin: util.Ptr(false),
+ Disabled: util.Ptr(false),
+ Approved: util.Ptr(true),
ResetPasswordToken: "",
ResetPasswordSentAt: time.Time{},
},
@@ -320,16 +296,16 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Fields: []*gtsmodel.Field{},
Note: "",
NoteRaw: "",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2020-05-17T13:10:59Z"),
UpdatedAt: TimeMustParse("2020-05-17T13:10:59Z"),
- Bot: FalseBool(),
+ Bot: util.Ptr(false),
Reason: "",
- Locked: FalseBool(),
- Discoverable: TrueBool(),
+ Locked: util.Ptr(false),
+ Discoverable: util.Ptr(true),
Privacy: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://localhost:8080/users/localhost:8080",
URL: "http://localhost:8080/@localhost:8080",
@@ -347,9 +323,9 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
- EnableRSS: FalseBool(),
+ EnableRSS: util.Ptr(false),
},
"unconfirmed_account": {
ID: "01F8MH0BBE4FHXPH513MBVFHB0",
@@ -359,16 +335,16 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
DisplayName: "",
Fields: []*gtsmodel.Field{},
Note: "",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
+ Bot: util.Ptr(false),
Reason: "hi, please let me in! I'm looking for somewhere neato bombeato to hang out.",
- Locked: FalseBool(),
- Discoverable: FalseBool(),
+ Locked: util.Ptr(false),
+ Discoverable: util.Ptr(false),
Privacy: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://localhost:8080/users/weed_lord420",
URL: "http://localhost:8080/@weed_lord420",
@@ -386,7 +362,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
},
"admin_account": {
@@ -398,16 +374,16 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Fields: []*gtsmodel.Field{},
Note: "",
NoteRaw: "",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"),
UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"),
- Bot: FalseBool(),
+ Bot: util.Ptr(false),
Reason: "",
- Locked: FalseBool(),
- Discoverable: TrueBool(),
+ Locked: util.Ptr(false),
+ Discoverable: util.Ptr(true),
Privacy: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://localhost:8080/users/admin",
URL: "http://localhost:8080/@admin",
@@ -425,9 +401,9 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
- EnableRSS: TrueBool(),
+ EnableRSS: util.Ptr(true),
},
"local_account_1": {
ID: "01F8MH1H7YV1Z7D2C8K2730QBF",
@@ -438,16 +414,16 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Fields: []*gtsmodel.Field{},
Note: "<p>hey yo this is my profile!</p>",
NoteRaw: "hey yo this is my profile!",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2022-05-20T11:09:18Z"),
UpdatedAt: TimeMustParse("2022-05-20T11:09:18Z"),
- Bot: FalseBool(),
+ Bot: util.Ptr(false),
Reason: "I wanna be on this damned webbed site so bad! Please! Wow",
- Locked: FalseBool(),
- Discoverable: TrueBool(),
+ Locked: util.Ptr(false),
+ Discoverable: util.Ptr(true),
Privacy: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://localhost:8080/users/the_mighty_zork",
URL: "http://localhost:8080/@the_mighty_zork",
@@ -465,9 +441,9 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
- EnableRSS: TrueBool(),
+ EnableRSS: util.Ptr(true),
},
"local_account_2": {
ID: "01F8MH5NBDF2MV7CTC4Q5128HF",
@@ -497,16 +473,16 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
},
Note: "<p>i post about things that concern me</p>",
NoteRaw: "i post about things that concern me",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
+ Bot: util.Ptr(false),
Reason: "",
- Locked: TrueBool(),
- Discoverable: FalseBool(),
+ Locked: util.Ptr(true),
+ Discoverable: util.Ptr(false),
Privacy: gtsmodel.VisibilityFollowersOnly,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "fr",
URI: "http://localhost:8080/users/1happyturtle",
URL: "http://localhost:8080/@1happyturtle",
@@ -524,9 +500,9 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
- EnableRSS: FalseBool(),
+ EnableRSS: util.Ptr(false),
},
"remote_account_1": {
ID: "01F8MH5ZK5VRH73AKHQM6Y9VNX",
@@ -535,20 +511,20 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
DisplayName: "big gerald",
Fields: []*gtsmodel.Field{},
Note: "i post about like, i dunno, stuff, or whatever!!!!",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2021-09-26T12:52:36+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
- Locked: FalseBool(),
- Discoverable: TrueBool(),
- Sensitive: FalseBool(),
+ Bot: util.Ptr(false),
+ Locked: util.Ptr(false),
+ Discoverable: util.Ptr(true),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://fossbros-anonymous.io/users/foss_satan",
URL: "http://fossbros-anonymous.io/@foss_satan",
FetchedAt: time.Time{},
InboxURI: "http://fossbros-anonymous.io/users/foss_satan/inbox",
- SharedInboxURI: StringPtr("http://fossbros-anonymous.io/inbox"),
+ SharedInboxURI: util.Ptr("http://fossbros-anonymous.io/inbox"),
OutboxURI: "http://fossbros-anonymous.io/users/foss_satan/outbox",
FollowersURI: "http://fossbros-anonymous.io/users/foss_satan/followers",
FollowingURI: "http://fossbros-anonymous.io/users/foss_satan/following",
@@ -561,7 +537,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
},
"remote_account_2": {
@@ -571,20 +547,20 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
DisplayName: "some user",
Fields: []*gtsmodel.Field{},
Note: "i'm a real son of a gun",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
- Locked: TrueBool(),
- Discoverable: TrueBool(),
- Sensitive: FalseBool(),
+ Bot: util.Ptr(false),
+ Locked: util.Ptr(true),
+ Discoverable: util.Ptr(true),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://example.org/users/Some_User",
URL: "http://example.org/@Some_User",
FetchedAt: time.Time{},
InboxURI: "http://example.org/users/Some_User/inbox",
- SharedInboxURI: StringPtr(""),
+ SharedInboxURI: util.Ptr(""),
OutboxURI: "http://example.org/users/Some_User/outbox",
FollowersURI: "http://example.org/users/Some_User/followers",
FollowingURI: "http://example.org/users/Some_User/following",
@@ -597,7 +573,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
},
"remote_account_3": {
@@ -607,20 +583,20 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
DisplayName: "lizzzieeeeeeeeeeee",
Fields: []*gtsmodel.Field{},
Note: "if i die blame charles don't let that fuck become king",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
- Locked: TrueBool(),
- Discoverable: TrueBool(),
- Sensitive: FalseBool(),
+ Bot: util.Ptr(false),
+ Locked: util.Ptr(true),
+ Discoverable: util.Ptr(true),
+ Sensitive: util.Ptr(false),
Language: "en",
URI: "http://thequeenisstillalive.technology/users/her_fuckin_maj",
URL: "http://thequeenisstillalive.technology/@her_fuckin_maj",
FetchedAt: time.Time{},
InboxURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/inbox",
- SharedInboxURI: StringPtr(""),
+ SharedInboxURI: util.Ptr(""),
OutboxURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/outbox",
FollowersURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/followers",
FollowingURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/following",
@@ -633,7 +609,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
HeaderMediaAttachmentID: "01PFPMWK2FF0D9WMHEJHR07C3R",
},
@@ -643,20 +619,20 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Domain: "xn--xample-ova.org",
DisplayName: "",
Note: "",
- Memorial: FalseBool(),
+ Memorial: util.Ptr(false),
MovedToAccountID: "",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
- Locked: FalseBool(),
- Discoverable: FalseBool(),
- Sensitive: FalseBool(),
+ Bot: util.Ptr(false),
+ Locked: util.Ptr(false),
+ Discoverable: util.Ptr(false),
+ Sensitive: util.Ptr(false),
Language: "de",
URI: "https://xn--xample-ova.org/users/%C3%BCser",
URL: "https://xn--xample-ova.org/users/@%C3%BCser",
FetchedAt: time.Time{},
InboxURI: "https://xn--xample-ova.org/users/%C3%BCser/inbox",
- SharedInboxURI: StringPtr(""),
+ SharedInboxURI: util.Ptr(""),
OutboxURI: "https://xn--xample-ova.org/users/%C3%BCser/outbox",
FollowersURI: "https://xn--xample-ova.org/users/%C3%BCser/followers",
FollowingURI: "https://xn--xample-ova.org/users/%C3%BCser/following",
@@ -669,10 +645,10 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
SensitizedAt: time.Time{},
SilencedAt: time.Time{},
SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
+ HideCollections: util.Ptr(false),
SuspensionOrigin: "",
HeaderMediaAttachmentID: "",
- EnableRSS: FalseBool(),
+ EnableRSS: util.Ptr(false),
},
}
@@ -784,9 +760,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH17FWEB39HZJ76B6VXSKF/attachment/small/01F8MH6NEM8D7527KZAECTCR76.jpg",
RemoteURL: "",
},
- Avatar: FalseBool(),
- Header: FalseBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(false),
+ Cached: util.Ptr(true),
},
"local_account_1_status_4_attachment_1": {
ID: "01F8MH7TDVANYKWVE8VVKFPJTJ",
@@ -833,9 +809,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/attachment/small/01F8MH7TDVANYKWVE8VVKFPJTJ.jpg",
RemoteURL: "",
},
- Avatar: FalseBool(),
- Header: FalseBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(false),
+ Cached: util.Ptr(true),
},
"local_account_1_status_4_attachment_2": {
ID: "01CDR64G398ADCHXK08WWTHEZ5",
@@ -851,9 +827,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
Height: 404,
Size: 290880,
Aspect: 1.78217821782178,
- Duration: Float32Ptr(15.033334),
- Framerate: Float32Ptr(30.0),
- Bitrate: Uint64Ptr(1206522),
+ Duration: util.Ptr[float32](15.033334),
+ Framerate: util.Ptr[float32](30.0),
+ Bitrate: util.Ptr[uint64](1206522),
},
Small: gtsmodel.Small{
Width: 720,
@@ -885,9 +861,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/attachment/small/01CDR64G398ADCHXK08WWTHEZ5.jpg",
RemoteURL: "",
},
- Avatar: FalseBool(),
- Header: FalseBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(false),
+ Cached: util.Ptr(true),
},
"local_account_1_unattached_1": {
ID: "01F8MH8RMYQ6MSNY3JM2XT1CQ5",
@@ -934,9 +910,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/attachment/small/01F8MH8RMYQ6MSNY3JM2XT1CQ5.jpg",
RemoteURL: "",
},
- Avatar: FalseBool(),
- Header: FalseBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(false),
+ Cached: util.Ptr(true),
},
"local_account_1_avatar": {
ID: "01F8MH58A357CV5K7R7TJMSH6S",
@@ -983,9 +959,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/avatar/small/01F8MH58A357CV5K7R7TJMSH6S.jpg",
RemoteURL: "",
},
- Avatar: TrueBool(),
- Header: FalseBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(true),
+ Header: util.Ptr(false),
+ Cached: util.Ptr(true),
},
"local_account_1_header": {
ID: "01PFPMWK2FF0D9WMHEJHR07C3Q",
@@ -1032,9 +1008,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH1H7YV1Z7D2C8K2730QBF/header/small/01PFPMWK2FF0D9WMHEJHR07C3Q.jpg",
RemoteURL: "",
},
- Avatar: FalseBool(),
- Header: TrueBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(true),
+ Cached: util.Ptr(true),
},
"remote_account_1_status_1_attachment_1": {
ID: "01FVW7RXPQ8YJHTEXYPE7Q8ZY0",
@@ -1081,9 +1057,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/01F8MH5ZK5VRH73AKHQM6Y9VNX/attachment/small/01FVW7RXPQ8YJHTEXYPE7Q8ZY0.jpg",
RemoteURL: "http://fossbros-anonymous.io/attachments/small/a499f55b-2d1e-4acd-98d2-1ac2ba6d79b9.jpg",
},
- Avatar: FalseBool(),
- Header: FalseBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(false),
+ Cached: util.Ptr(true),
},
"remote_account_3_header": {
ID: "01PFPMWK2FF0D9WMHEJHR07C3R",
@@ -1130,9 +1106,9 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment {
URL: "http://localhost:8080/fileserver/062G5WYKY35KKD12EMSM3F8PJ8/header/small/01PFPMWK2FF0D9WMHEJHR07C3R.jpg",
RemoteURL: "http://fossbros-anonymous.io/attachments/small/a499f55b-2d1e-4acd-98d2-1ac2ba6d79b9.jpg",
},
- Avatar: FalseBool(),
- Header: TrueBool(),
- Cached: TrueBool(),
+ Avatar: util.Ptr(false),
+ Header: util.Ptr(true),
+ Cached: util.Ptr(true),
},
}
}
@@ -1157,11 +1133,11 @@ func NewTestEmojis() map[string]*gtsmodel.Emoji {
ImageFileSize: 36702,
ImageStaticFileSize: 10413,
ImageUpdatedAt: TimeMustParse("2021-09-20T12:40:37+02:00"),
- Disabled: FalseBool(),
+ Disabled: util.Ptr(false),
URI: "http://localhost:8080/emoji/01F8MH9H8E4VG3KDYJR9EGPXCQ",
- VisibleInPicker: TrueBool(),
+ VisibleInPicker: util.Ptr(true),
CategoryID: "01GGQ8V4993XK67B2JB396YFB7",
- Cached: FalseBool(),
+ Cached: util.Ptr(false),
},
"yell": {
ID: "01GD5KP5CQEE1R3X43Y1EHS2CW",
@@ -1180,11 +1156,11 @@ func NewTestEmojis() map[string]*gtsmodel.Emoji {
ImageFileSize: 10889,
ImageStaticFileSize: 10808,
ImageUpdatedAt: TimeMustParse("2020-03-18T13:12:00+01:00"),
- Disabled: FalseBool(),
+ Disabled: util.Ptr(false),
URI: "http://fossbros-anonymous.io/emoji/01GD5KP5CQEE1R3X43Y1EHS2CW",
- VisibleInPicker: FalseBool(),
+ VisibleInPicker: util.Ptr(false),
CategoryID: "",
- Cached: FalseBool(),
+ Cached: util.Ptr(false),
},
}
}
@@ -1257,7 +1233,7 @@ func NewTestDomainBlocks() map[string]*gtsmodel.DomainBlock {
CreatedByAccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
PrivateComment: "i blocked this domain because they keep replying with pushy + unwarranted linux advice",
PublicComment: "reply-guying to tech posts",
- Obfuscate: FalseBool(),
+ Obfuscate: util.Ptr(false),
},
}
}
@@ -1333,20 +1309,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
EmojiIDs: []string{"01F8MH9H8E4VG3KDYJR9EGPXCQ"},
CreatedAt: TimeMustParse("2021-10-20T11:36:45Z"),
UpdatedAt: TimeMustParse("2021-10-20T11:36:45Z"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/admin",
AccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGXQRHYF5QPMTMXP78QC2F",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"admin_account_status_2": {
@@ -1358,20 +1334,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐕🐕🐕🐕🐕",
CreatedAt: TimeMustParse("2021-10-20T12:36:45Z"),
UpdatedAt: TimeMustParse("2021-10-20T12:36:45Z"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/admin",
AccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "open to see some puppies",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGXQRHYF5QPMTMXP78QC2F",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"admin_account_status_3": {
@@ -1382,7 +1358,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "hi @the_mighty_zork welcome to the instance!",
CreatedAt: TimeMustParse("2021-11-20T13:32:16Z"),
UpdatedAt: TimeMustParse("2021-11-20T13:32:16Z"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/admin",
MentionIDs: []string{"01FF26A6BGEKCZFWNEHXB2ZZ6M"},
AccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
@@ -1391,13 +1367,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
InReplyToURI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY",
BoostOfID: "",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGXQRHYF5QPMTMXP78QC2F",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"admin_account_status_4": {
@@ -1408,7 +1384,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "hello everyone!",
CreatedAt: TimeMustParse("2021-10-20T12:41:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:41:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/admin",
AccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
InReplyToID: "",
@@ -1418,13 +1394,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
BoostOfAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
ContentWarning: "introduction post",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGXQRHYF5QPMTMXP78QC2F",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_1_status_1": {
@@ -1435,20 +1411,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "hello everyone!",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/the_mighty_zork",
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "introduction post",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_1_status_2": {
@@ -1459,20 +1435,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "this is an unlocked local-only post that shouldn't federate, but it's still boostable, replyable, and likeable",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/the_mighty_zork",
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityUnlocked,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG",
- Federated: FalseBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(false),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_1_status_3": {
@@ -1483,20 +1459,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "this is a very personal post that I don't want anyone to interact with at all, and i only want mutuals to see it",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/the_mighty_zork",
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "test: you shouldn't be able to interact with this post in any way",
Visibility: gtsmodel.VisibilityMutualsOnly,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG",
- Federated: TrueBool(),
- Boostable: FalseBool(),
- Replyable: FalseBool(),
- Likeable: FalseBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(false),
+ Replyable: util.Ptr(false),
+ Likeable: util.Ptr(false),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_1_status_4": {
@@ -1508,20 +1484,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
AttachmentIDs: []string{"01F8MH7TDVANYKWVE8VVKFPJTJ", "01CDR64G398ADCHXK08WWTHEZ5"},
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/the_mighty_zork",
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "eye contact, trent reznor gif, cow",
Visibility: gtsmodel.VisibilityMutualsOnly,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_1_status_5": {
@@ -1533,20 +1509,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
AttachmentIDs: []string{},
CreatedAt: TimeMustParse("2022-05-20T11:37:55Z"),
UpdatedAt: TimeMustParse("2022-05-20T11:37:55Z"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/the_mighty_zork",
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityFollowersOnly,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_2_status_1": {
@@ -1557,20 +1533,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐢 hi everyone i post about turtles 🐢",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "introduction post",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_2_status_2": {
@@ -1581,20 +1557,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐢 this one is federated, likeable, and boostable but not replyable 🐢",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: FalseBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(false),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_2_status_3": {
@@ -1605,20 +1581,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐢 i don't mind people sharing this one but I don't want likes or replies to it because cba🐢",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "you won't be able to like or reply to this",
Visibility: gtsmodel.VisibilityUnlocked,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: FalseBool(),
- Likeable: FalseBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(false),
+ Likeable: util.Ptr(false),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_2_status_4": {
@@ -1629,20 +1605,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐢 this is a public status but I want it local only and not boostable 🐢",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: TrueBool(),
+ Sensitive: util.Ptr(true),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: FalseBool(),
- Boostable: FalseBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(false),
+ Boostable: util.Ptr(false),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
@@ -1654,7 +1630,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐢 @the_mighty_zork hi zork! 🐢",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
MentionIDs: []string{"01FDF2HM2NF6FSRZCDEDV451CN"},
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
@@ -1664,13 +1640,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityPublic,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_2_status_6": {
@@ -1681,7 +1657,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
Text: "🐢 @the_mighty_zork hi zork, this is a direct message, shhhhhh! 🐢",
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
MentionIDs: []string{"01FDF2HM2NF6FSRZCDEDV451CN"},
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
@@ -1691,13 +1667,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityDirect,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"local_account_2_status_7": {
@@ -1710,20 +1686,20 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
AttachmentIDs: []string{},
CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"),
- Local: TrueBool(),
+ Local: util.Ptr(true),
AccountURI: "http://localhost:8080/users/1happyturtle",
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
InReplyToID: "",
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityFollowersOnly,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
"remote_account_1_status_1": {
@@ -1734,7 +1710,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"},
CreatedAt: TimeMustParse("2021-09-20T12:40:37+02:00"),
UpdatedAt: TimeMustParse("2021-09-20T12:40:37+02:00"),
- Local: FalseBool(),
+ Local: util.Ptr(false),
AccountURI: "http://fossbros-anonymous.io/users/foss_satan",
MentionIDs: []string{},
AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX",
@@ -1744,13 +1720,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
BoostOfID: "",
ContentWarning: "",
Visibility: gtsmodel.VisibilityUnlocked,
- Sensitive: FalseBool(),
+ Sensitive: util.Ptr(false),
Language: "en",
CreatedWithApplicationID: "",
- Federated: TrueBool(),
- Boostable: TrueBool(),
- Replyable: TrueBool(),
- Likeable: TrueBool(),
+ Federated: util.Ptr(true),
+ Boostable: util.Ptr(true),
+ Replyable: util.Ptr(true),
+ Likeable: util.Ptr(true),
ActivityStreamsType: ap.ObjectNote,
},
}
@@ -1764,16 +1740,16 @@ func NewTestTags() map[string]*gtsmodel.Tag {
Name: "welcome",
CreatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
UpdatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
- Useable: TrueBool(),
- Listable: TrueBool(),
+ Useable: util.Ptr(true),
+ Listable: util.Ptr(true),
},
"Hashtag": {
ID: "01FCT9SGYA71487N8D0S1M638G",
Name: "hashtag",
CreatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
UpdatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
- Useable: TrueBool(),
- Listable: TrueBool(),
+ Useable: util.Ptr(true),
+ Listable: util.Ptr(true),
},
}
}
@@ -1909,7 +1885,7 @@ func NewTestNotifications() map[string]*gtsmodel.Notification {
TargetAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
OriginAccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
StatusID: "01F8MHAMCHF6Y650WCRSCP4WMY",
- Read: FalseBool(),
+ Read: util.Ptr(false),
},
"local_account_2_like": {
ID: "01GTS6PRPXJYZBPFFQ56PP0XR8",
@@ -1918,7 +1894,7 @@ func NewTestNotifications() map[string]*gtsmodel.Notification {
TargetAccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
OriginAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
StatusID: "01F8MH75CBF9JFX4ZAD54N0W0R",
- Read: FalseBool(),
+ Read: util.Ptr(false),
},
}
}
@@ -1932,9 +1908,9 @@ func NewTestFollows() map[string]*gtsmodel.Follow {
UpdatedAt: TimeMustParse("2022-05-14T16:21:09+02:00"),
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
TargetAccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
- ShowReblogs: TrueBool(),
+ ShowReblogs: util.Ptr(true),
URI: "http://localhost:8080/users/the_mighty_zork/follow/01F8PY8RHWRQZV038T4E8T9YK8",
- Notify: FalseBool(),
+ Notify: util.Ptr(false),
},
"local_account_1_local_account_2": {
ID: "01F8PYDCE8XE23GRE5DPZJDZDP",
@@ -1942,9 +1918,9 @@ func NewTestFollows() map[string]*gtsmodel.Follow {
UpdatedAt: TimeMustParse("2022-05-14T15:21:09+02:00"),
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
TargetAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
- ShowReblogs: TrueBool(),
+ ShowReblogs: util.Ptr(true),
URI: "http://localhost:8080/users/the_mighty_zork/follow/01F8PYDCE8XE23GRE5DPZJDZDP",
- Notify: FalseBool(),
+ Notify: util.Ptr(false),
},
"local_account_2_local_account_1": {
ID: "01G1TK1RS4K3E0MSFTXBFWAH9Q",
@@ -1952,9 +1928,9 @@ func NewTestFollows() map[string]*gtsmodel.Follow {
UpdatedAt: TimeMustParse("2022-05-14T14:21:09+02:00"),
AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
TargetAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
- ShowReblogs: TrueBool(),
+ ShowReblogs: util.Ptr(true),
URI: "http://localhost:8080/users/1happyturtle/follow/01F8PYDCE8XE23GRE5DPZJDZDP",
- Notify: FalseBool(),
+ Notify: util.Ptr(false),
},
"admin_account_local_account_1": {
ID: "01G1TK3PQKFW1BQZ9WVYRTFECK",
@@ -1962,9 +1938,9 @@ func NewTestFollows() map[string]*gtsmodel.Follow {
UpdatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
AccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
TargetAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
- ShowReblogs: TrueBool(),
+ ShowReblogs: util.Ptr(true),
URI: "http://localhost:8080/users/admin/follow/01G1TK3PQKFW1BQZ9WVYRTFECK",
- Notify: FalseBool(),
+ Notify: util.Ptr(false),
},
}
}
@@ -2044,7 +2020,7 @@ func NewTestReports() map[string]*gtsmodel.Report {
TargetAccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX",
Comment: "dark souls sucks, please yeet this nerd",
StatusIDs: []string{"01FVW7JHQFSFK166WWKR8CBA6M"},
- Forwarded: TrueBool(),
+ Forwarded: util.Ptr(true),
},
"remote_account_1_report_local_account_2": {
ID: "01GP3DFY9XQ1TJMZT5BGAZPXX7",
@@ -2055,7 +2031,7 @@ func NewTestReports() map[string]*gtsmodel.Report {
TargetAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF",
Comment: "this is a turtle, not a person, therefore should not be a poster",
StatusIDs: []string{},
- Forwarded: TrueBool(),
+ Forwarded: util.Ptr(true),
ActionTaken: "user was warned not to be a turtle anymore",
ActionTakenAt: TimeMustParse("2022-05-15T17:01:56+02:00"),
ActionTakenByAccountID: "01F8MH17FWEB39HZJ76B6VXSKF",