mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
add display name to the email variables
This commit is contained in:
@@ -19,7 +19,7 @@ let api = {};
|
|||||||
* @apiSuccess {Object} data.flags The flags of the message
|
* @apiSuccess {Object} data.flags The flags of the message
|
||||||
* @apiSuccess {Number} data.flagCount The number of flags the message has
|
* @apiSuccess {Number} data.flagCount The number of flags the message has
|
||||||
* @apiSuccess {UUID} data.uuid The user id of the author of the message, or of the recipient if `sent` is true
|
* @apiSuccess {UUID} data.uuid The user id of the author of the message, or of the recipient if `sent` is true
|
||||||
* @apiSuccess {String} data.user The username of the author of the message, or of the recipient if `sent` is true
|
* @apiSuccess {String} data.user The Display Name of the author of the message, or of the recipient if `sent` is true
|
||||||
*
|
*
|
||||||
* @apiUse MessageNotFound
|
* @apiUse MessageNotFound
|
||||||
* @apiUse MessageIdRequired
|
* @apiUse MessageIdRequired
|
||||||
|
|||||||
@@ -18,12 +18,14 @@ export default class ChatReporter {
|
|||||||
{name: 'MESSAGE_TIME', content: (new Date(message.timestamp)).toString()},
|
{name: 'MESSAGE_TIME', content: (new Date(message.timestamp)).toString()},
|
||||||
{name: 'MESSAGE_TEXT', content: message.text},
|
{name: 'MESSAGE_TEXT', content: message.text},
|
||||||
|
|
||||||
{name: 'REPORTER_USERNAME', content: this.user.profile.name},
|
{name: 'REPORTER_DISPLAYNAME', content: this.user.profile.name},
|
||||||
|
{name: 'REPORTER_USERNAME', content: this.user.auth.local.username},
|
||||||
{name: 'REPORTER_UUID', content: this.user._id},
|
{name: 'REPORTER_UUID', content: this.user._id},
|
||||||
{name: 'REPORTER_EMAIL', content: reporterEmailContent},
|
{name: 'REPORTER_EMAIL', content: reporterEmailContent},
|
||||||
{name: 'REPORTER_MODAL_URL', content: `/static/front/#?memberId=${this.user._id}`},
|
{name: 'REPORTER_MODAL_URL', content: `/static/front/#?memberId=${this.user._id}`},
|
||||||
|
|
||||||
{name: 'AUTHOR_USERNAME', content: message.user},
|
{name: 'AUTHOR_DISPLAYNAME', content: message.user},
|
||||||
|
{name: 'AUTHOR_USERNAME', content: message.username},
|
||||||
{name: 'AUTHOR_UUID', content: message.uuid},
|
{name: 'AUTHOR_UUID', content: message.uuid},
|
||||||
{name: 'AUTHOR_EMAIL', content: this.authorEmail},
|
{name: 'AUTHOR_EMAIL', content: this.authorEmail},
|
||||||
{name: 'AUTHOR_MODAL_URL', content: `/static/front/#?memberId=${message.uuid}`},
|
{name: 'AUTHOR_MODAL_URL', content: `/static/front/#?memberId=${message.uuid}`},
|
||||||
|
|||||||
Reference in New Issue
Block a user