mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-12 15:15:45 +02:00
Fix invalid links (such as account names a tweet replied to) being clickable in notifications
This commit is contained in:
parent
38d6d93f65
commit
0d32c168eb
@ -96,6 +96,10 @@
|
||||
html.find(".js-media").last().remove(); // and quoted tweets still show media previews, nice nice
|
||||
html.find(".js-quote-detail").removeClass("is-actionable");
|
||||
|
||||
html.find("a[href='#']").each(function(){ // remove <a> tags around links that don't lead anywhere (such as account names the tweet replied to)
|
||||
this.outerHTML = this.innerHTML;
|
||||
});
|
||||
|
||||
let source = tweet.getRelatedTweet();
|
||||
let duration = source ? source.text.length+(source.quotedTweet ? source.quotedTweet.text.length : 0) : tweet.text.length;
|
||||
let tweetUrl = source ? source.getChirpURL() : "";
|
||||
|
Loading…
Reference in New Issue
Block a user