remove unused cache fields

This commit is contained in:
tobi 2025-04-06 12:05:40 +02:00
commit 6143bb9879

View file

@ -304,18 +304,10 @@ func (c *Caches) initAccount() {
c.DB.Account.Init(structr.CacheConfig[*gtsmodel.Account]{
Indices: []structr.IndexConfig{
// Unique fields.
{Fields: "ID"},
{Fields: "URI"},
{Fields: "PublicKeyURI"},
{Fields: "Username,Domain", AllowZero: true},
// Potentially non-unique fields.
{Fields: "URL", Multiple: true},
{Fields: "InboxURI", Multiple: true},
{Fields: "OutboxURI", Multiple: true},
{Fields: "FollowersURI", Multiple: true},
{Fields: "FollowingURI", Multiple: true},
},
MaxSize: cap,
IgnoreErr: ignoreErrors,