mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user