diff --git a/web/components/editor/embed-modal.tsx b/web/components/editor/embed-modal.tsx index bb826e9e..05694090 100644 --- a/web/components/editor/embed-modal.tsx +++ b/web/components/editor/embed-modal.tsx @@ -25,6 +25,8 @@ const embedPatterns: EmbedPattern[] = [ }, { regex: /^https?:\/\/twitter\.com\/.*\/status\/(\d+)/, + // Hack: append a leading 't', to prevent tweetId from being interpreted as a number. + // If it's a number, there may be numeric precision issues. rewrite: (id) => ``, }, {