Tweaks, do not send mention and document updated emails to one user
This commit is contained in:
@@ -37,14 +37,18 @@ export default class MentionNotificationEmail extends BaseEmail<
|
||||
return { document };
|
||||
}
|
||||
|
||||
protected subject({ actorName, document }: Props) {
|
||||
return `${actorName} mentioned you in "${document.title}"`;
|
||||
protected subject({ document }: Props) {
|
||||
return `Mentioned you in “${document.title}”`;
|
||||
}
|
||||
|
||||
protected preview({ actorName }: Props): string {
|
||||
return `${actorName} mentioned you`;
|
||||
}
|
||||
|
||||
protected fromName({ actorName }: Props) {
|
||||
return actorName;
|
||||
}
|
||||
|
||||
protected renderAsText({
|
||||
actorName,
|
||||
teamUrl,
|
||||
@@ -54,7 +58,7 @@ export default class MentionNotificationEmail extends BaseEmail<
|
||||
return `
|
||||
You were mentioned
|
||||
|
||||
${actorName} mentioned you in the document "${document.title}".
|
||||
${actorName} mentioned you in the document “${document.title}”.
|
||||
|
||||
Open Document: ${teamUrl}${document.url}?mentionId=${mentionId}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user