From 3efb338ca9d3e3be27b283d2a46436777dd10edb Mon Sep 17 00:00:00 2001 From: mkljczk Date: Sun, 31 Aug 2025 11:42:42 +0200 Subject: [PATCH] [chore] fix copy-pasted comment (#4402) # Description ## Checklist - [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md). - [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. - [x] I/we have not leveraged AI to create the proposed changes. - [ ] I/we have performed a self-review of added code. - [ ] I/we have written code that is legible and maintainable by others. - [ ] I/we have commented the added code, particularly in hard-to-understand areas. - [ ] I/we have made any necessary changes to documentation. - [ ] I/we have added tests that cover new code. - [ ] I/we have run tests and they pass locally with the changes. - [ ] I/we have run `go fmt ./...` and `golangci-lint run`. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4402 Co-authored-by: mkljczk Co-committed-by: mkljczk --- internal/typeutils/internaltofrontend.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index ab15d7425..b2a4652d3 100644 --- a/internal/typeutils/internaltofrontend.go +++ b/internal/typeutils/internaltofrontend.go @@ -102,9 +102,9 @@ func (c *Converter) UserToAPIUser(ctx context.Context, u *gtsmodel.User) *apimod return user } -// AccountToAPIAccountSensitive takes a db model application as a param, and returns a populated apitype application, or an error -// if something goes wrong. The returned application should be ready to serialize on an API level, and may have sensitive fields -// (such as client id and client secret), so serve it only to an authorized user who should have permission to see it. +// AccountToAPIAccountSensitive takes a db model account as a param, and returns a populated apitype account, or an error +// if something goes wrong. The returned account should be ready to serialize on an API level, and may have sensitive fields +// (such as user settings and follow requests count), so serve it only to an authorized user who should have permission to see it. func (c *Converter) AccountToAPIAccountSensitive(ctx context.Context, a *gtsmodel.Account) (*apimodel.Account, error) { // We can build this sensitive account model // by first getting the public account, and