Skip to content

Commit

Permalink
Revert "domains: try to avoid SyntaxError on Twitter's 404"
Browse files Browse the repository at this point in the history
This reverts commit 4a80975.
  • Loading branch information
iparamonau committed Mar 23, 2023
1 parent 4a80975 commit 4b07af3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/domains/twitter.com/twitter.status.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export default {
hide_media: hide_media,
hide_thread: true, // hide_thread - now handled in getLinks. This is the only reliable way to detect if a tweet has the thread
omit_script: omit_script,
url: encodeURIComponent(urlMatch[0]),
format: 'json'
url: urlMatch[0]
},
json: true,
cache_key: 'twitter:oembed:' + urlMatch[1],
Expand Down

0 comments on commit 4b07af3

Please sign in to comment.