FIX: Quoting a quote preserves the original post information (#8746)

Let's say post #2 quotes post number #1. If a user decides to quote the
quote in post #2, it should keep the information of post #1
("user_1, post: 1, topic: X"), instead of replacing with current post
info ("user_2, post: 2, topic: X").
This commit is contained in:
Bianca Nenciu
2020-01-22 16:10:23 +02:00
committed by GitHub
parent 8a89b7e108
commit 7b7e1717f2
11 changed files with 86 additions and 32 deletions

View File

@@ -73,6 +73,10 @@ const rule = {
token.attrs.push(["class", "quote no-group"]);
}
if (username) {
token.attrs.push(["data-username", username]);
}
if (postNumber) {
token.attrs.push(["data-post", postNumber]);
}