summaryrefslogtreecommitdiff
path: root/source/features/embed-gist-inline.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/embed-gist-inline.tsx')
-rw-r--r--source/features/embed-gist-inline.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/embed-gist-inline.tsx b/source/features/embed-gist-inline.tsx
index ebf701e0..45b51f7c 100644
--- a/source/features/embed-gist-inline.tsx
+++ b/source/features/embed-gist-inline.tsx
@@ -6,7 +6,7 @@ import features from '../libs/features';
const isGist = (link: HTMLAnchorElement): boolean =>
!link.pathname.includes('.') && // Exclude links to embed files
(
- link.hostname.startsWith('gist.') ||
+ (link.hostname.startsWith('gist.') && link.pathname.includes('/', 1)) || // Exclude user links
link.pathname.startsWith('gist/')
);