@@ -116,6 +116,13 @@ const CreateNotificationsMutation = `
116116 }
117117` ;
118118
119+ export const automatedModerator = {
120+ id : "00000000-0000-0000-0000-000000000002" ,
121+ email : "automated-moderator" ,
122+ username : "<automated-moderator>" ,
123+ type : ProfileType ,
124+ } ;
125+
119126export class ExternalNotificationsService {
120127 private _active : boolean ;
121128 private url ?: string | null ;
@@ -289,6 +296,7 @@ export class ExternalNotificationsService {
289296 const data = {
290297 source : NotificationSource ,
291298 type : NotificationType . CoralCommentApproved ,
299+ from : automatedModerator ,
292300 to : this . userToExternalProfile ( input . to ) ,
293301 story : this . storyToInput ( input . story ) ,
294302 site : this . siteToInput ( input . site ) ,
@@ -315,6 +323,7 @@ export class ExternalNotificationsService {
315323 const data = {
316324 source : NotificationSource ,
317325 type : NotificationType . CoralCommentRejected ,
326+ from : automatedModerator ,
318327 to : this . userToExternalProfile ( input . to ) ,
319328 story : this . storyToInput ( input . story ) ,
320329 site : this . siteToInput ( input . site ) ,
@@ -341,6 +350,7 @@ export class ExternalNotificationsService {
341350 const data = {
342351 source : NotificationSource ,
343352 type : NotificationType . CoralCommentFeatured ,
353+ from : automatedModerator ,
344354 to : this . userToExternalProfile ( input . to ) ,
345355 story : this . storyToInput ( input . story ) ,
346356 site : this . siteToInput ( input . site ) ,
0 commit comments