From f0f3ece9165a7d7ef459f165e25688911c320ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A0=E9=99=A5=E9=9B=BB=E6=B0=97?= Date: Sat, 18 Feb 2023 22:42:38 +0800 Subject: [PATCH] fix(route): fix misskey template when text is null (#11906) --- lib/v2/misskey/templates/note.art | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/v2/misskey/templates/note.art b/lib/v2/misskey/templates/note.art index 34f553e56..c748ed2e1 100644 --- a/lib/v2/misskey/templates/note.art +++ b/lib/v2/misskey/templates/note.art @@ -1,4 +1,6 @@ -{{ text.replace(/\n/g, '
') }} +{{ if text }} +

{{ text.replace(/\n/g, '
') }}

+{{ /if }} {{ each files file }}