Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 14f6d48

Browse files
committed
fix: drop when failed to get valid link
(should at least includes self)
1 parent c1edc48 commit 14f6d48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content-script/hooks/twitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class TwitterHook {
8484
setTimeout(() => {
8585
const tweet = document.querySelector('[data-testid="tweet"]');
8686
const link = tweet?.querySelector('time')?.parentElement?.getAttribute('href');
87-
if (link) {
87+
if (link && link.includes(this.getUsername())) {
8888
note.related_urls = [`https://twitter.com${link}`];
8989
} else {
9090
this.main.xlog('error', 'Failed to get link for: ', tweet);

0 commit comments

Comments
 (0)