summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltofrontend.go
diff options
context:
space:
mode:
authorLibravatar mkljczk <git@mkljczk.pl>2025-08-31 11:42:42 +0200
committerLibravatar tobi <kipvandenbos@noreply.codeberg.org>2025-08-31 11:42:42 +0200
commit3efb338ca9d3e3be27b283d2a46436777dd10edb (patch)
tree599c0f31c6db05052ab98566d32accf5b41add4e /internal/typeutils/internaltofrontend.go
parent[bugfix] fix nootel metrics function signature (#4392) (diff)
downloadgotosocial-3efb338ca9d3e3be27b283d2a46436777dd10edb.tar.xz
[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 <git@mkljczk.pl> Co-committed-by: mkljczk <git@mkljczk.pl>
Diffstat (limited to 'internal/typeutils/internaltofrontend.go')
-rw-r--r--internal/typeutils/internaltofrontend.go6
1 files 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