summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Kid <kidonng@gmail.com> 2019-08-24 19:02:52 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-08-24 18:02:52 +0700
commit3be7ae7ff66065fab8e7494c66b8b66ece3663de (patch)
tree03fb780497205c48a032eedd0192a1d3cc66b772
parent5c19a1e6c13c98f1a830d18b1227b01868f38a96 (diff)
downloadrefined-github-3be7ae7ff66065fab8e7494c66b8b66ece3663de.tar.gz
refined-github-3be7ae7ff66065fab8e7494c66b8b66ece3663de.tar.zst
refined-github-3be7ae7ff66065fab8e7494c66b8b66ece3663de.zip
Exclude profile links in `embed-gist-inline` (#2380)19.8.25
-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/')
);