Skip to content

Commit

Permalink
Fix twitter URL matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Sep 26, 2023
1 parent 4993630 commit 487ecee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/imgproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const imageUrlMatchers = [
const exclude = [
u => u.protocol === 'mailto:',
u => u.host.endsWith('.onion') || u.host.endsWith('.b32.ip') || u.host.endsWith('.loki'),
u => ['twitter.com', 'x.com', 'nitter.it', 'nitter.at'].includes(u.host),
u => ['twitter.com', 'x.com', 'nitter.it', 'nitter.at'].some(h => h === u.host),
u => u.host === 'stacker.news',
u => u.host === 'news.ycombinator.com',
u => u.host === 'www.youtube.com' || u.host === 'youtu.be',
Expand Down

0 comments on commit 487ecee

Please sign in to comment.