Skip to content

Commit d7b4e6b

Browse files
authored
Add post edit notifications
1 parent 8554809 commit d7b4e6b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/routes/notifications/constants/notifications.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,17 @@ export const NOTIFICATIONS = [
279279
projectRoles: [PROJECT_ROLE_OWNER, PROJECT_ROLE_COPILOT, PROJECT_ROLE_MANAGER, PROJECT_ROLE_MEMBER],
280280
goTo: GOTO.POST
281281
}]
282-
},
283-
284-
{
282+
}, {
283+
version: 2,
284+
eventType: 'notifications.connect.project.post.edited',
285+
type: NOTIFICATION_TYPE.NEW_POSTS,
286+
rules: [{
287+
text: '<strong>{{userFullName}}</strong> edited post',
288+
shouldBundle: true,
289+
bundledText: '{{#showMore __history__ 3}}<strong>{{fallback userFullName userHandle}}</strong>{{/showMore}} edited {{bundledCount}} posts',
290+
goTo: GOTO.POST
291+
}]
292+
}, {
285293
version: 2,
286294
eventType: 'notifications.connect.project.post.mention',
287295
type: NOTIFICATION_TYPE.NEW_POSTS,

0 commit comments

Comments
 (0)