Normalize medium links
This commit is contained in:
parent
c1f5a7b536
commit
ee770f4610
@ -466,7 +466,7 @@ function getIdentifierInternal(urlstr) {
|
|||||||
return 'disqus.com' + takeFirstPathComponents(url.pathname, 2);
|
return 'disqus.com' + takeFirstPathComponents(url.pathname, 2);
|
||||||
}
|
}
|
||||||
if (isHostedOn(host, 'medium.com')) {
|
if (isHostedOn(host, 'medium.com')) {
|
||||||
return 'medium.com' + takeFirstPathComponents(url.pathname, 1);
|
return 'medium.com' + takeFirstPathComponents(url.pathname.replace('/t/', '/'), 1);
|
||||||
}
|
}
|
||||||
if (isHostedOn(host, 'tumblr.com')) {
|
if (isHostedOn(host, 'tumblr.com')) {
|
||||||
if (url.pathname.startsWith('/register/follow/')) {
|
if (url.pathname.startsWith('/register/follow/')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user