From f3f185435916165a6dd72f3a1bd67e370a2a783d Mon Sep 17 00:00:00 2001 From: tobi Date: Sun, 4 May 2025 09:45:10 +0000 Subject: [bugfix] Fix no notification if mention edited into status (#4102) This pull request adds mention notifications if a mention was edited into a status after its initial publication. Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/3869 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4102 Co-authored-by: tobi Co-committed-by: tobi --- internal/processing/workers/fromclientapi_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/processing/workers/fromclientapi_test.go') diff --git a/internal/processing/workers/fromclientapi_test.go b/internal/processing/workers/fromclientapi_test.go index 552db75da..c643e0c70 100644 --- a/internal/processing/workers/fromclientapi_test.go +++ b/internal/processing/workers/fromclientapi_test.go @@ -89,6 +89,7 @@ func (suite *FromClientAPITestSuite) newStatus( OriginAccountID: account.ID, OriginAccountURI: account.URI, TargetAccountID: replyToStatus.AccountID, + IsNew: true, } if err := state.DB.PutMention(ctx, mention); err != nil { @@ -117,6 +118,7 @@ func (suite *FromClientAPITestSuite) newStatus( TargetAccountID: mentionedAccount.ID, TargetAccount: mentionedAccount, Silent: util.Ptr(false), + IsNew: true, } newStatus.Mentions = append(newStatus.Mentions, newMention) -- cgit v1.2.3