From 0dd57e4d43b06a70a45b77f2006f805f9a42116c Mon Sep 17 00:00:00 2001
From: Chocobozzz <me@florianbigard.com>
Date: Mon, 20 Apr 2020 09:04:38 +0200
Subject: Fix tests

---
 server/lib/job-queue/handlers/activitypub-follow.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'server/lib')

diff --git a/server/lib/job-queue/handlers/activitypub-follow.ts b/server/lib/job-queue/handlers/activitypub-follow.ts
index 94eeed4c0..e467c5b1b 100644
--- a/server/lib/job-queue/handlers/activitypub-follow.ts
+++ b/server/lib/job-queue/handlers/activitypub-follow.ts
@@ -36,7 +36,7 @@ async function processActivityPubFollow (job: Bull.Job) {
   }
 
   if (payload.assertIsChannel && !targetActor.VideoChannel) {
-    logger.warn('Do not follow %s@%s because it is not a channel.', name, host)
+    logger.warn('Do not follow %s@%s because it is not a channel.', payload.name, host)
     return
   }
 
-- 
cgit v1.2.3