mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-26 13:35:16 +03:00
dd74f42376
closes https://github.com/TryGhost/Team/issues/2429 - sends email notifications to staff users when their site receives a Webmention. - currently behind a flag, that can be toggled in the labs settings.
23 lines
504 B
JavaScript
23 lines
504 B
JavaScript
/**
|
|
* @typedef {object} MentionCreatedEventData
|
|
*/
|
|
|
|
module.exports = class MentionCreatedEvent {
|
|
/**
|
|
* @param {MentionCreatedEventData} data
|
|
* @param {Date} timestamp
|
|
*/
|
|
constructor(data, timestamp) {
|
|
this.data = data;
|
|
this.timestamp = timestamp;
|
|
}
|
|
|
|
/**
|
|
* @param {MentionCreatedEventData} data
|
|
* @param {Date} [timestamp]
|
|
*/
|
|
static create(data, timestamp) {
|
|
return new MentionCreatedEvent(data, timestamp ?? new Date);
|
|
}
|
|
};
|