diff options
author | 2024-09-10 14:34:49 +0200 | |
---|---|---|
committer | 2024-09-10 12:34:49 +0000 | |
commit | 307d98e3862b6e867eea524b81d5428b03e6607c (patch) | |
tree | b990378c5452f5779b85bd0d769db77a78f93600 /internal/cache/size.go | |
parent | [chore] status dereferencing improvements (#3255) (diff) | |
download | gotosocial-307d98e3862b6e867eea524b81d5428b03e6607c.tar.xz |
[feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin" 😈 (#3271)
* [feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin"
* update test
* move nil check back to `rejectStatusIRI`
Diffstat (limited to 'internal/cache/size.go')
-rw-r--r-- | internal/cache/size.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go index 29ab77fbf..49c2f4318 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -593,6 +593,29 @@ func sizeofReport() uintptr { })) } +func sizeofSinBinStatus() uintptr { + return uintptr(size.Of(>smodel.SinBinStatus{ + ID: exampleID, + CreatedAt: exampleTime, + UpdatedAt: exampleTime, + URI: exampleURI, + URL: exampleURI, + Domain: exampleURI, + AccountURI: exampleURI, + InReplyToURI: exampleURI, + Content: exampleText, + AttachmentLinks: []string{exampleURI, exampleURI}, + MentionTargetURIs: []string{exampleURI}, + EmojiLinks: []string{exampleURI}, + PollOptions: []string{exampleTextSmall, exampleTextSmall, exampleTextSmall, exampleTextSmall}, + ContentWarning: exampleTextSmall, + Visibility: gtsmodel.VisibilityPublic, + Sensitive: util.Ptr(false), + Language: "en", + ActivityStreamsType: ap.ObjectNote, + })) +} + func sizeofStatus() uintptr { return uintptr(size.Of(>smodel.Status{ ID: exampleID, |