From 14006d9209a56e142be6502660ba5fa2f1a0fe28 Mon Sep 17 00:00:00 2001 From: vulet Date: Tue, 23 Feb 2021 11:06:23 +0800 Subject: [PATCH] fix(feed): don't throw on unknown notification types. --- commands/fediverse/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fediverse/utils.js b/commands/fediverse/utils.js index a0a5993..41add17 100644 --- a/commands/fediverse/utils.js +++ b/commands/fediverse/utils.js @@ -65,7 +65,7 @@ const notifyFormatter = (res, roomId) => { sendEventWithMeta(roomId, content, meta); break; default: - throw 'Unknown notification type.'; + return console.log('Unknown notification type.'); } };