From ee180a23596371ff1c207727828191f096fb4597 Mon Sep 17 00:00:00 2001 From: Nicole Mikołajczyk Date: Sun, 1 Jun 2025 11:24:04 +0200 Subject: [bugfix] fix GetAccountFollowRequestingIDs query (#4222) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicole Mikołajczyk # Description This pull request fixes a bug encountered when playing around with GTS code. ## 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. - [x] I/we have performed a self-review of added code. - [x] I/we have written code that is legible and maintainable by others. - [x] I/we have commented the added code, particularly in hard-to-understand areas. - [ ] I/we have made any necessary changes to documentation. - [x] I/we have added tests that cover new code. - [x] I/we have run tests and they pass locally with the changes. - [x] I/we have run `go fmt ./...` and `golangci-lint run`. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4222 Co-authored-by: Nicole Mikołajczyk Co-committed-by: Nicole Mikołajczyk --- internal/db/bundb/relationship.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/bundb/relationship.go') diff --git a/internal/db/bundb/relationship.go b/internal/db/bundb/relationship.go index c8dcd5a50..867282376 100644 --- a/internal/db/bundb/relationship.go +++ b/internal/db/bundb/relationship.go @@ -302,7 +302,7 @@ func newSelectFollowRequesting(db *bun.DB, accountID string) *bun.SelectQuery { return db.NewSelect(). TableExpr("?", bun.Ident("follow_requests")). ColumnExpr("?", bun.Ident("id")). - Where("? = ?", bun.Ident("target_account_id"), accountID). + Where("? = ?", bun.Ident("account_id"), accountID). OrderExpr("? DESC", bun.Ident("id")) } -- cgit v1.2.3