Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use media-neutral Space post notifications

Anand Baburajan7d0a58ec525b
diff --git a/server/space/controller/notifications.go b/server/space/controller/notifications.go
index e43951ad31..232931c179 100644
--- a/server/space/controller/notifications.go
+++ b/server/space/controller/notifications.go
@@ -118,7 +118,7 @@ func (n *SpaceWebPushSender) OnSpacePostCreated(actor SpaceActivityActor, postID
}
n.send(
actor,
- "posted a new photo",
+ "shared a new post",
"Check it out",
spaceActivityPostCreated,
fmt.Sprintf("/app/posts/%s/%d", url.PathEscape(actor.SpaceID), postID),
diff --git a/server/space/controller/notifications_test.go b/server/space/controller/notifications_test.go
index 3963251fed..cee86849e6 100644
--- a/server/space/controller/notifications_test.go
+++ b/server/space/controller/notifications_test.go
@@ -397,7 +397,7 @@ func TestPublicPostPushCarriesOnlyOpaqueLocalRouteTarget(t *testing.T) {
sender := NewSpaceWebPushSender(nil, config)
sender.send(
SpaceActivityActor{UserID: 2, Slug: "alice"},
- "posted a new photo",
+ "shared a new post",
"Check it out",
spaceActivityPostCreated,
"/app",
@@ -411,7 +411,7 @@ func TestPublicPostPushCarriesOnlyOpaqueLocalRouteTarget(t *testing.T) {
)
require.Equal(t, spaceWebPushPayload{
Title: "Ente Space",
- Body: "@alice posted a new photo",
+ Body: "@alice shared a new post",
Action: "Check it out",
TargetID: "wpt_public_target",
}, payload)
@@ -438,7 +438,7 @@ func TestSpaceWebPushSendRateAppliesOncePerActivity(t *testing.T) {
}
NewSpaceWebPushSender(nil, config).send(
SpaceActivityActor{UserID: 3, Slug: "alice"},
- "posted a new photo",
+ "shared a new post",
"Check it out",
spaceActivityPostCreated,
"/app",