add full name if exists in email-invite-subject or when tagging someone with '@' while commenting a card

This commit is contained in:
Emile NDAGIJIMANA 2021-10-18 15:26:01 +02:00
parent b12312f998
commit d9329a9e15
6 changed files with 23 additions and 7 deletions

View file

@ -1237,9 +1237,10 @@ if (Meteor.isServer) {
}
try {
const fullName = inviter.profile !== undefined ? inviter.profile.fullname : "";
const params = {
user: user.username,
inviter: inviter.username,
inviter: fullName != "" ? fullName + " (" + inviter.username + " )" : inviter.username,
board: board.title,
url: board.absoluteUrl(),
};