mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:22:24 -05:00
[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`
This commit is contained in:
parent
3254ef1923
commit
307d98e386
21 changed files with 1172 additions and 115 deletions
23
internal/cache/size.go
vendored
23
internal/cache/size.go
vendored
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue