From 53b7078a2d9c699b9d2e1ae7886382d6fa3286ef Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 19 Oct 2022 14:01:04 +0800 Subject: [PATCH] timeline --- scripts/tags/timeline.js | 4 +++- source/js/plugins/timeline.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/tags/timeline.js b/scripts/tags/timeline.js index 7ba8c9a..ae5c4cf 100644 --- a/scripts/tags/timeline.js +++ b/scripts/tags/timeline.js @@ -40,7 +40,9 @@ function postTimeline(args, content) { var el = ''; if (args.api && args.api.length > 0) { - el += '
'; + el += '
'; - cell += '💬 ' + item.comments + ''; + cell += '💬 ' + (item.comments || 0) + ''; cell += ''; }