Skip to content

Commit

Permalink
Merge pull request #132 from IGAQ/ilia-fix-notification-message
Browse files Browse the repository at this point in the history
fix the message
  • Loading branch information
iantelli authored Dec 2, 2022
2 parents 1c92b51 + b1724a1 commit be3fe99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class NotificationMessageMakerService implements INotificationMessageMake
postTypeName: string;
commentContent: string;
}) =>
`${p.username} replied to your ${p.postTypeName} '(uuid:${this.stashToken}:post:${
`someone replied to your ${p.postTypeName} '(uuid:${this.stashToken}:post:${
p.postId
}:comm:${p.commentId}:text:${p.commentContent?.slice(0, 20) ?? ""})'`,
[EventTypes.NewCommentOnComment]: (p: {
Expand All @@ -25,7 +25,7 @@ export class NotificationMessageMakerService implements INotificationMessageMake
p.postId
}:comm:${p.commentId}:text:${p.commentContent?.slice(0, 20) ?? ""})'`,
[EventTypes.CommentGotUpVote]: (p: { username: string; postId: UUID; commentId: UUID }) =>
`${p.username} up voted your comment (uuid:${this.stashToken}:comm:${p.commentId}:post:${p.postId}:text:check it out!)`,
`someone up voted your comment (uuid:${this.stashToken}:comm:${p.commentId}:post:${p.postId}:text:check it out!)`,
[EventTypes.CommentGotDownVote]: (p: { username: string; postId: UUID; commentId: UUID }) =>
`${p.username} down voted your comment (uuid:${this.stashToken}:comm:${p.commentId}:post:${p.postId}:text:go to comment)`,
[EventTypes.CommentGotRestricted]: (p: { commentContent: string; reason: string }) =>
Expand Down

0 comments on commit be3fe99

Please sign in to comment.