Skip to content

Commit

Permalink
Merge pull request #968 from Celestial04/patch-4
Browse files Browse the repository at this point in the history
Fixed tweet embeding
  • Loading branch information
dimdenGD authored Nov 19, 2024
2 parents 231044c + 8c82dcf commit f347163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3469,7 +3469,7 @@ async function appendTweet(t, timelineContainer, options = {}) {
openInNewTab(`/${t.user.screen_name}/status/${t.id_str}?newtwitter=true`);
});
tweetInteractMoreMenuEmbed.addEventListener('click', () => {
openInNewTab(`https://publish.${location.hostname}/?query=/${t.user.screen_name}/status/${t.id_str}&widget=Tweet`);
openInNewTab(`https://publish.${location.hostname}/?query=https://${location.hostname}/${t.user.screen_name}/status/${t.id_str}&widget=tweet`);
});
if (t.user.id_str === user.id_str) {
tweetInteractMoreMenuAnalytics.addEventListener('click', () => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/tweetviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,7 @@ class TweetViewer {
openInNewTab(`https://${location.hostname}/${t.user.screen_name}/status/${t.id_str}?newtwitter=true`);
});
tweetInteractMoreMenuEmbed.addEventListener('click', () => {
openInNewTab(`https://publish.${location.hostname}/?query=/${t.user.screen_name}/status/${t.id_str}&widget=Tweet`);
openInNewTab(`https://publish.${location.hostname}/?query=https://${location.hostname}/${t.user.screen_name}/status/${t.id_str}&widget=tweet`);
});
if (t.user.id_str === user.id_str) {
tweetInteractMoreMenuAnalytics.addEventListener('click', () => {
Expand Down

0 comments on commit f347163

Please sign in to comment.