summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltofrontend.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/typeutils/internaltofrontend.go')
-rw-r--r--internal/typeutils/internaltofrontend.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go
index 7924e2185..67d6cef94 100644
--- a/internal/typeutils/internaltofrontend.go
+++ b/internal/typeutils/internaltofrontend.go
@@ -67,14 +67,6 @@ func (c *converter) AccountToMastoPublic(ctx context.Context, a *gtsmodel.Accoun
return nil, fmt.Errorf("given account was nil")
}
- // first check if we have this account in our frontEnd cache
- if accountI, err := c.frontendCache.Fetch(a.ID); err == nil {
- if account, ok := accountI.(*model.Account); ok {
- // we have it, so just return it as-is
- return account, nil
- }
- }
-
// count followers
followersCount, err := c.db.CountAccountFollowedBy(ctx, a.ID, false)
if err != nil {
@@ -184,11 +176,6 @@ func (c *converter) AccountToMastoPublic(ctx context.Context, a *gtsmodel.Accoun
Suspended: suspended,
}
- // put the account in our cache in case we need it again soon
- if err := c.frontendCache.Store(a.ID, accountFrontend); err != nil {
- return nil, err
- }
-
return accountFrontend, nil
}