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,13 +25,10 @@ $(document).ready(function() {
return;
}
let post = $('#reply_' + id);
if (post.length == 0) {
post = $('#op_' + id);
let post = $('#reply_' + id + ', #op_' + id);
if (post.length == 0) {
return;
}
}
let mentioned = post.find('.head div.mentioned');
if (mentioned.length === 0) {