show-backlinks.js: simplify

This commit is contained in:
Zankaria 2024-12-29 15:33:10 +01:00
parent cd2a4b5fac
commit 66b1e7d569

View file

@ -25,12 +25,9 @@ $(document).ready(function() {
return; return;
} }
let post = $('#reply_' + id); let post = $('#reply_' + id + ', #op_' + id);
if (post.length == 0) { if (post.length == 0) {
post = $('#op_' + id); return;
if (post.length == 0) {
return;
}
} }
let mentioned = post.find('.head div.mentioned'); let mentioned = post.find('.head div.mentioned');