From 94cbe1120e0364d0994989dff7722d0bf6e2ac07 Mon Sep 17 00:00:00 2001 From: nicole mikołajczyk Date: Mon, 14 Jul 2025 17:12:47 +0200 Subject: [bugfix] use correct interaction type for pre-accepted interaction requests (#4325) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk # Description > If this is a code change, please include a summary of what you've coded, and link to the issue(s) it closes/implements. > > If this is a documentation change, please briefly describe what you've changed and why. This pull request fixes `InteractionType` incorrectly set for pre-approved interaction requests. ## Checklist Please put an x inside each checkbox to indicate that you've read and followed it: `[ ]` -> `[x]` If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want). - [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. - [ ] 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. - [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/4325 Co-authored-by: nicole mikołajczyk Co-committed-by: nicole mikołajczyk --- internal/processing/workers/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/processing/workers/util.go') diff --git a/internal/processing/workers/util.go b/internal/processing/workers/util.go index b9787456a..3c17eaaf5 100644 --- a/internal/processing/workers/util.go +++ b/internal/processing/workers/util.go @@ -561,7 +561,7 @@ func (u *utils) requestFave( return gtserror.Newf("db error storing interaction request: %w", err) } - // Notify *local* account of pending announce. + // Notify *local* account of pending fave. if err := u.surface.notifyPendingFave(ctx, fave); err != nil { return gtserror.Newf("error notifying pending fave: %w", err) } -- cgit v1.2.3