mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 09:42:26 -05:00
[feature] Create/update/remove domain permission subscriptions (#3623)
* [feature] Create/update/remove domain permission subscriptions * lint * envparsing * remove errant fmt.Println * create drafts, subs, exclude, from snapshot models * name etag column correctly * remove count column * lint
This commit is contained in:
parent
77f1e79532
commit
e9bb7ddd3a
50 changed files with 4630 additions and 172 deletions
19
internal/cache/size.go
vendored
19
internal/cache/size.go
vendored
|
|
@ -357,6 +357,25 @@ func sizeofDomainPermissionDraft() uintptr {
|
|||
}))
|
||||
}
|
||||
|
||||
func sizeofDomainPermissionSubscription() uintptr {
|
||||
return uintptr(size.Of(>smodel.DomainPermissionSubscription{
|
||||
ID: exampleID,
|
||||
Priority: uint8(255),
|
||||
Title: exampleTextSmall,
|
||||
PermissionType: gtsmodel.DomainPermissionBlock,
|
||||
AsDraft: util.Ptr(true),
|
||||
CreatedByAccountID: exampleID,
|
||||
URI: exampleURI,
|
||||
ContentType: gtsmodel.DomainPermSubContentTypeCSV,
|
||||
FetchUsername: "username",
|
||||
FetchPassword: "password",
|
||||
FetchedAt: exampleTime,
|
||||
SuccessfullyFetchedAt: exampleTime,
|
||||
ETag: exampleID,
|
||||
Error: exampleTextSmall,
|
||||
}))
|
||||
}
|
||||
|
||||
func sizeofEmoji() uintptr {
|
||||
return uintptr(size.Of(>smodel.Emoji{
|
||||
ID: exampleID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue