FIX: track links in onebox body if it's same as header link.
This commit is contained in:
parent
76610acb6f
commit
e7e931b70b
|
@ -18,6 +18,13 @@ export function isValidLink($link) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($link.closest(".onebox-result, .onebox-body").length) {
|
||||
const $a = $link.closest(".onebox").find("header a");
|
||||
if ($a[0] && $a[0].href === $link[0].href) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
$link.hasClass("track-link") ||
|
||||
$link.closest(".hashtag, .badge-category, .onebox-result, .onebox-body")
|
||||
|
|
Loading…
Reference in New Issue