mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02: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:
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,
|
||||
|
Reference in New Issue
Block a user