fix copy
This commit is contained in:
15
src/Flows.js
15
src/Flows.js
@@ -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'),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user