Fixup "Groups: Add the ability to write comments on behalf of the group"

Sorry, I just forgot to add this file to the commit :3
This commit is contained in:
Maxim Leshchenko 2021-12-04 22:23:57 +02:00
parent 7f4dabef4b
commit c52bc1010a
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -3,7 +3,10 @@ u(".comment-reply").on("click", function(e) {
let comment = u(e.target).closest(".post"); let comment = u(e.target).closest(".post");
let authorId = comment.data("owner-id"); let authorId = comment.data("owner-id");
let authorNm = u(".post-author > a > b", comment.first()).text().trim(); let authorNm = u(".post-author > a > b", comment.first()).text().trim();
let fromGroup = Boolean(comment.data("from-group"));
let postId = comment.data("post-id");
console.log(postId)
inputbox.text("[id" + authorId + "|" + authorNm + "], "); inputbox.text("[" + (fromGroup ? "club" : "id") + "" + authorId + "|" + authorNm + "], ");
inputbox.trigger("focusin"); inputbox.trigger("focusin");
}); });