mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
FIX: quoting a section inside expanded reply misattributed
1. expand "in reply to" 2. select text 3. quote reply Was incorrectly attributed to parent post
This commit is contained in:
parent
4d5074994c
commit
4d71356e52
|
@ -27,14 +27,16 @@ export default createWidget('embedded-post', {
|
|||
|
||||
html(attrs, state) {
|
||||
return [
|
||||
h('div.row', [
|
||||
this.attach('post-avatar', attrs),
|
||||
h('div.topic-body', [
|
||||
h('div.topic-meta-data', [
|
||||
this.attach('poster-name', attrs),
|
||||
this.attach('post-link-arrow', { above: state.above, shareUrl: attrs.shareUrl })
|
||||
]),
|
||||
new RawHtml({html: `<div class='cooked'>${attrs.cooked}</div>`})
|
||||
h('div.reply', {attributes: {'data-post-id': attrs.id}}, [
|
||||
h('div.row', [
|
||||
this.attach('post-avatar', attrs),
|
||||
h('div.topic-body', [
|
||||
h('div.topic-meta-data', [
|
||||
this.attach('poster-name', attrs),
|
||||
this.attach('post-link-arrow', { above: state.above, shareUrl: attrs.shareUrl })
|
||||
]),
|
||||
new RawHtml({html: `<div class='cooked'>${attrs.cooked}</div>`})
|
||||
])
|
||||
])
|
||||
])
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user