kopia lustrzana https://github.com/snarfed/bridgy-fed
rodzic
5249bb5a4f
commit
01c89fae2d
|
@ -17,6 +17,11 @@ from oauth_dropins.webutil.util import json_dumps, json_loads
|
||||||
|
|
||||||
import common
|
import common
|
||||||
|
|
||||||
|
# https://github.com/snarfed/bridgy-fed/issues/314
|
||||||
|
WWW_DOMAINS = frozenset((
|
||||||
|
'www.jvt.me',
|
||||||
|
))
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,7 +139,7 @@ class User(StringIdModel):
|
||||||
site = f'https://{domain}/'
|
site = f'https://{domain}/'
|
||||||
logger.info(f'Verifying {site}')
|
logger.info(f'Verifying {site}')
|
||||||
|
|
||||||
if domain.startswith('www.'):
|
if domain.startswith('www.') and domain not in WWW_DOMAINS:
|
||||||
# if root domain redirects to www, use root domain instead
|
# if root domain redirects to www, use root domain instead
|
||||||
# https://github.com/snarfed/bridgy-fed/issues/314
|
# https://github.com/snarfed/bridgy-fed/issues/314
|
||||||
root = domain.removeprefix("www.")
|
root = domain.removeprefix("www.")
|
||||||
|
|
Ładowanie…
Reference in New Issue