From bca96b6dcdad13c1b74c0a4fa8f144eb8c977516 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 9 Jan 2021 16:44:17 -0500 Subject: [PATCH] meme: fix empty meme issue --- plugins/meme/web.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/meme/web.go b/plugins/meme/web.go index a08f6df..60a5e76 100644 --- a/plugins/meme/web.go +++ b/plugins/meme/web.go @@ -147,6 +147,9 @@ var memeIndex = ` }, filters: { pretty: function(value) { + if (!value) { + return "" + } return JSON.stringify(JSON.parse(value), null, 2); } },