summaryrefslogtreecommitdiff
path: root/internal/processing/status/favedby.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/status/favedby.go')
-rw-r--r--internal/processing/status/favedby.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/processing/status/favedby.go b/internal/processing/status/favedby.go
index 227fb669d..e8681e379 100644
--- a/internal/processing/status/favedby.go
+++ b/internal/processing/status/favedby.go
@@ -62,15 +62,15 @@ func (p *processor) FavedBy(ctx context.Context, requestingAccount *gtsmodel.Acc
}
}
- // now we can return the masto representation of those accounts
- mastoAccounts := []*apimodel.Account{}
+ // now we can return the api representation of those accounts
+ apiAccounts := []*apimodel.Account{}
for _, acc := range filteredAccounts {
- mastoAccount, err := p.tc.AccountToMastoPublic(ctx, acc)
+ apiAccount, err := p.tc.AccountToAPIAccountPublic(ctx, acc)
if err != nil {
return nil, gtserror.NewErrorInternalError(fmt.Errorf("error converting status %s to frontend representation: %s", targetStatus.ID, err))
}
- mastoAccounts = append(mastoAccounts, mastoAccount)
+ apiAccounts = append(apiAccounts, apiAccount)
}
- return mastoAccounts, nil
+ return apiAccounts, nil
}