]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/notifier/shared/abuse/abuse-state-change-for-reporter.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / server / lib / notifier / shared / abuse / abuse-state-change-for-reporter.ts
index 968b5bca901f2c179c93dead6d34afd48e56abca..97e896c6a667f6a119b31f7b9f293dcc76795c02 100644 (file)
@@ -32,8 +32,8 @@ export class AbuseStateChangeForReporter extends AbstractNotification <MAbuseFul
     return [ this.user ]
   }
 
-  async createNotification (user: MUserWithNotificationSetting) {
-    const notification = await UserNotificationModel.create<UserNotificationModelForApi>({
+  createNotification (user: MUserWithNotificationSetting) {
+    const notification = UserNotificationModel.build<UserNotificationModelForApi>({
       type: UserNotificationType.ABUSE_STATE_CHANGE,
       userId: user.id,
       abuseId: this.abuse.id
@@ -51,7 +51,7 @@ export class AbuseStateChangeForReporter extends AbstractNotification <MAbuseFul
     const abuseUrl = WEBSERVER.URL + '/my-account/abuses?search=%23' + this.abuse.id
 
     const action = {
-      text,
+      text: 'View report #' + this.abuse.id,
       url: abuseUrl
     }