From 7d7c206f245387d32283fbb4e82bd9d526427936 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 26 Apr 2020 11:46:47 +0900 Subject: [PATCH] fix(server): Fix #6284 --- src/mfm/toString.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mfm/toString.ts b/src/mfm/toString.ts index 5b53105b3..65090b103 100644 --- a/src/mfm/toString.ts +++ b/src/mfm/toString.ts @@ -79,7 +79,11 @@ export function toString(tokens: MfmForest | null, opts?: RestoreOptions): strin }, link(token, opts) { - return `[${appendChildren(token.children, opts)}](${token.node.props.url})`; + if (token.node.props.silent) { + return `?[${appendChildren(token.children, opts)}](${token.node.props.url})`; + } else { + return `[${appendChildren(token.children, opts)}](${token.node.props.url})`; + } }, mention(token) {