This commit is contained in:
2022-05-22 14:13:55 +08:00
parent 3ce8b91eb0
commit 5128cb26de

View File

@@ -200,20 +200,11 @@ class FlowItem extends PureComponent {
copy( copy(
`${event.target.href}${ `${event.target.href}${
this.props.info.cw ? ' 【' + this.props.info.cw + '】' : '' this.props.info.cw ? ' 【' + this.props.info.cw + '】' : ''
}\n` + }\n\n${this.props.info.text}\n` +
`${this.props.info.text}${
this.props.info.type === 'image'
? ' [图片]'
: this.props.info.type === 'audio'
? ' [语音]'
: ''
}\n` +
`${format_time(new Date(this.props.info.timestamp * 1000))} ${ `${format_time(new Date(this.props.info.timestamp * 1000))} ${
this.props.info.likenum this.props.info.likenum
}关注 ${this.props.info.reply}回复)\n` + }关注 ${this.props.info.reply}回复)\n\n` +
this.props.replies this.props.replies.map((r) => `${r.name}\n${r.text}\n`).join('\n'),
.map((r) => (r.cw ? '【' + r.cw + '】' : '') + r.text)
.join('\n'),
); );
} }