mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05: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
1 changed files with 10 additions and 8 deletions
|
@ -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 a new issue