aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-14 11:04:50 +0100
committerChocobozzz <me@florianbigard.com>2019-02-15 09:43:37 +0100
commit1f6d57e354ef69b66525ac25684a3d7c59e1db57 (patch)
tree299cf86442e51b635d996fdb1949d0eda85a5f4f /server/lib
parent72be63e56f5d93de05b2601300ec782f8076c4bf (diff)
downloadPeerTube-1f6d57e354ef69b66525ac25684a3d7c59e1db57.tar.gz
PeerTube-1f6d57e354ef69b66525ac25684a3d7c59e1db57.tar.zst
PeerTube-1f6d57e354ef69b66525ac25684a3d7c59e1db57.zip
Fix mention notification with a remote account
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/notifier.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/notifier.ts b/server/lib/notifier.ts
index d1b331346..2fa320cd7 100644
--- a/server/lib/notifier.ts
+++ b/server/lib/notifier.ts
@@ -148,6 +148,8 @@ class Notifier {
148 148
149 private async notifyOfCommentMention (comment: VideoCommentModel) { 149 private async notifyOfCommentMention (comment: VideoCommentModel) {
150 const usernames = comment.extractMentions() 150 const usernames = comment.extractMentions()
151 logger.debug('Extracted %d username from comment %s.', usernames.length, comment.url, { usernames, text: comment.text })
152
151 let users = await UserModel.listByUsernames(usernames) 153 let users = await UserModel.listByUsernames(usernames)
152 154
153 if (comment.Video.isOwned()) { 155 if (comment.Video.isOwned()) {