From 301543616b5376585a7caff097499421acdf1806 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:09:58 +0100 Subject: [feature] Add domain permission drafts and excludes (#3547) * [feature] Add domain permission drafts and excludes * fix typescript complaining * lint * make filenames more consistent * test own domain excluded --- internal/cache/size.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'internal/cache/size.go') diff --git a/internal/cache/size.go b/internal/cache/size.go index 8367e4c46..26f4096ed 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -342,6 +342,21 @@ func sizeofConversation() uintptr { })) } +func sizeofDomainPermissionDraft() uintptr { + return uintptr(size.Of(>smodel.DomainPermissionDraft{ + ID: exampleID, + CreatedAt: exampleTime, + UpdatedAt: exampleTime, + PermissionType: gtsmodel.DomainPermissionBlock, + Domain: "example.org", + CreatedByAccountID: exampleID, + PrivateComment: exampleTextSmall, + PublicComment: exampleTextSmall, + Obfuscate: util.Ptr(false), + SubscriptionID: exampleID, + })) +} + func sizeofEmoji() uintptr { return uintptr(size.Of(>smodel.Emoji{ ID: exampleID, -- cgit v1.2.3