diff options
| author | 2025-07-14 17:12:47 +0200 | |
|---|---|---|
| committer | 2025-07-14 17:12:47 +0200 | |
| commit | 94cbe1120e0364d0994989dff7722d0bf6e2ac07 (patch) | |
| tree | cd9428adad327520eba9343cf99f9e767542aed5 /internal/processing/workers/fromclientapi.go | |
| parent | [bugfix] Fix wrong default used for `HidesCcPublicFromUnauthedWeb` in migrati... (diff) | |
| download | gotosocial-94cbe1120e0364d0994989dff7722d0bf6e2ac07.tar.xz | |
[bugfix] use correct interaction type for pre-accepted interaction requests (#4325)
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
# 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 <git@mkljczk.pl>
Co-committed-by: nicole mikołajczyk <git@mkljczk.pl>
Diffstat (limited to 'internal/processing/workers/fromclientapi.go')
| -rw-r--r-- | internal/processing/workers/fromclientapi.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/workers/fromclientapi.go b/internal/processing/workers/fromclientapi.go index 9ea37a2f2..32b3d8816 100644 --- a/internal/processing/workers/fromclientapi.go +++ b/internal/processing/workers/fromclientapi.go @@ -319,7 +319,7 @@ func (p *clientAPI) CreateStatus(ctx context.Context, cMsg *messages.FromClientA InteractingAccountID: status.AccountID, InteractingAccount: status.Account, InteractionURI: status.URI, - InteractionType: gtsmodel.InteractionLike, + InteractionType: gtsmodel.InteractionReply, Reply: status, URI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id), AcceptedAt: time.Now(), @@ -621,7 +621,7 @@ func (p *clientAPI) CreateAnnounce(ctx context.Context, cMsg *messages.FromClien InteractingAccountID: boost.AccountID, InteractingAccount: boost.Account, InteractionURI: boost.URI, - InteractionType: gtsmodel.InteractionLike, + InteractionType: gtsmodel.InteractionAnnounce, Announce: boost, URI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id), AcceptedAt: time.Now(), |
