]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/notifier.ts
Add server migrations
[github/Chocobozzz/PeerTube.git] / server / lib / notifier.ts
index d1b3313467ccb61e8f0d630826afa3c36b20707e..9cdd603a3714ed48153fab66004a6c8e6228eb9d 100644 (file)
@@ -147,8 +147,13 @@ class Notifier {
   }
 
   private async notifyOfCommentMention (comment: VideoCommentModel) {
-    const usernames = comment.extractMentions()
-    let users = await UserModel.listByUsernames(usernames)
+    const extractedUsernames = comment.extractMentions()
+    logger.debug(
+      'Extracted %d username from comment %s.', extractedUsernames.length, comment.url,
+      { usernames: extractedUsernames, text: comment.text }
+    )
+
+    let users = await UserModel.listByUsernames(extractedUsernames)
 
     if (comment.Video.isOwned()) {
       const userException = await UserModel.loadByVideoId(comment.videoId)