From 1d8906b67a4608340601c77cd942afd066da8069 Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 28 Aug 2020 16:46:24 +1000 Subject: [PATCH] =?UTF-8?q?Fix=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B0=D0=B2=D0=B0=D1=82=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=20=D0=B8=D1=81=D1=82=D0=BE=D1=87=D0=BD=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/Handler.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Handler.mjs b/modules/Handler.mjs index dfa9f2e..05b2f1c 100644 --- a/modules/Handler.mjs +++ b/modules/Handler.mjs @@ -157,7 +157,7 @@ export class Handler { if (copyright) { const { photo_50 } = await this.getById(copyright.id); - builder.setFooter(`Источник: ${copyright.name}`, photo_50); + builder.setFooter(`Источник: ${copyright.name}`, copyright.id ? photo_50 : null); } }