summaryrefslogtreecommitdiff
path: root/internal/cache
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache')
-rw-r--r--internal/cache/db.go6
-rw-r--r--internal/cache/size.go19
2 files changed, 14 insertions, 11 deletions
diff --git a/internal/cache/db.go b/internal/cache/db.go
index 385c5bcbb..8a8f59539 100644
--- a/internal/cache/db.go
+++ b/internal/cache/db.go
@@ -944,7 +944,7 @@ func (c *Caches) initInteractionRequest() {
// Don't include ptr fields that
// will be populated separately.
// See internal/db/bundb/interaction.go.
- i2.Status = nil
+ i2.TargetStatus = nil
i2.TargetAccount = nil
i2.InteractingAccount = nil
i2.Like = nil
@@ -958,7 +958,9 @@ func (c *Caches) initInteractionRequest() {
Indices: []structr.IndexConfig{
{Fields: "ID"},
{Fields: "InteractionURI"},
- {Fields: "URI"},
+ {Fields: "InteractionRequestURI"},
+ {Fields: "ResponseURI"},
+ {Fields: "AuthorizationURI"},
},
MaxSize: cap,
IgnoreErr: ignoreErrors,
diff --git a/internal/cache/size.go b/internal/cache/size.go
index aa22b03d7..cf58cf075 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -418,15 +418,16 @@ func sizeofInstance() uintptr {
func sizeofInteractionRequest() uintptr {
return uintptr(size.Of(&gtsmodel.InteractionRequest{
- ID: exampleID,
- CreatedAt: exampleTime,
- StatusID: exampleID,
- TargetAccountID: exampleID,
- InteractingAccountID: exampleID,
- InteractionURI: exampleURI,
- InteractionType: gtsmodel.InteractionAnnounce,
- URI: exampleURI,
- AcceptedAt: exampleTime,
+ ID: exampleID,
+ TargetStatusID: exampleID,
+ TargetAccountID: exampleID,
+ InteractingAccountID: exampleID,
+ InteractionRequestURI: exampleURI,
+ InteractionURI: exampleURI,
+ InteractionType: gtsmodel.InteractionAnnounce,
+ AcceptedAt: exampleTime,
+ ResponseURI: exampleURI,
+ AuthorizationURI: exampleURI,
}))
}