From 5128cb26dead437b185b107a750b60e766da96ae Mon Sep 17 00:00:00 2001 From: hole-thu Date: Sun, 22 May 2022 14:13:55 +0800 Subject: [PATCH] fix copy --- src/Flows.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/Flows.js b/src/Flows.js index 115b0d1..f79dbde 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -200,20 +200,11 @@ class FlowItem extends PureComponent { copy( `${event.target.href}${ this.props.info.cw ? ' 【' + this.props.info.cw + '】' : '' - }\n` + - `${this.props.info.text}${ - this.props.info.type === 'image' - ? ' [图片]' - : this.props.info.type === 'audio' - ? ' [语音]' - : '' - }\n` + + }\n\n${this.props.info.text}\n` + `(${format_time(new Date(this.props.info.timestamp * 1000))} ${ this.props.info.likenum - }关注 ${this.props.info.reply}回复)\n` + - this.props.replies - .map((r) => (r.cw ? '【' + r.cw + '】' : '') + r.text) - .join('\n'), + }关注 ${this.props.info.reply}回复)\n\n` + + this.props.replies.map((r) => `【${r.name}】\n${r.text}\n`).join('\n'), ); }