From 8480a758081e84384a366a29ecee3c3103687512 Mon Sep 17 00:00:00 2001 From: tobi Date: Sun, 11 May 2025 13:38:13 +0000 Subject: [feature] Notify accounts when a status they've interacted with has been edited (#4157) This pull request adds sending notifications to local accounts that have interacted with a status, if we receive or create a new edit for that status. closes https://codeberg.org/superseriousbusiness/gotosocial/issues/3991 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4157 Co-authored-by: tobi Co-committed-by: tobi --- testrig/testmodels.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testrig/testmodels.go') diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 5f0c2f032..30010c58c 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -3193,7 +3193,7 @@ func NewTestNotifications() map[string]*gtsmodel.Notification { CreatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"), TargetAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", OriginAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", - StatusID: "01F8MHAMCHF6Y650WCRSCP4WMY", + StatusOrEditID: "01F8MHAMCHF6Y650WCRSCP4WMY", Read: util.Ptr(false), }, "local_account_2_like": { @@ -3202,7 +3202,7 @@ func NewTestNotifications() map[string]*gtsmodel.Notification { CreatedAt: TimeMustParse("2022-01-13T12:45:01+02:00"), TargetAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", OriginAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - StatusID: "01F8MH75CBF9JFX4ZAD54N0W0R", + StatusOrEditID: "01F8MH75CBF9JFX4ZAD54N0W0R", Read: util.Ptr(false), }, "new_signup": { @@ -3211,7 +3211,7 @@ func NewTestNotifications() map[string]*gtsmodel.Notification { CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"), TargetAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", OriginAccountID: "01F8MH0BBE4FHXPH513MBVFHB0", - StatusID: "", + StatusOrEditID: "", Read: util.Ptr(false), }, } -- cgit v1.2.3