summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltoas.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/typeutils/internaltoas.go')
-rw-r--r--internal/typeutils/internaltoas.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go
index 2e6bd3091..a14a3dbab 100644
--- a/internal/typeutils/internaltoas.go
+++ b/internal/typeutils/internaltoas.go
@@ -348,14 +348,6 @@ func (c *converter) AccountToASMinimal(ctx context.Context, a *gtsmodel.Account)
}
func (c *converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (vocab.ActivityStreamsNote, error) {
- // first check if we have this note in our asCache already
- if noteI, err := c.asCache.Fetch(s.ID); err == nil {
- if note, ok := noteI.(vocab.ActivityStreamsNote); ok {
- // we have it, so just return it as-is
- return note, nil
- }
- }
-
// ensure prerequisites here before we get stuck in
// check if author account is already attached to status and attach it if not
@@ -550,11 +542,6 @@ func (c *converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (vocab.A
sensitiveProp.AppendXMLSchemaBoolean(s.Sensitive)
status.SetActivityStreamsSensitive(sensitiveProp)
- // put the note in our cache in case we need it again soon
- if err := c.asCache.Store(s.ID, status); err != nil {
- return nil, err
- }
-
return status, nil
}