Move ROBOTS_TXT to strings

This commit is contained in:
dangered wolf 2023-04-18 21:56:06 -04:00
parent c323e2f8d5
commit 8b481bbbae
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 16 additions and 15 deletions

View file

@ -62,20 +62,7 @@ export const Constants = {
'content-type': 'application/json'
},
POLL_TWEET_CACHE: 'max-age=60',
DEFAULT_COLOR: '#10A3FF',
ROBOTS_TXT: `# Yandex crawls far, far heavier than Googlebot and Bingbot combined
User-agent: YandexBot
Disallow: /
User-agent: *
Allow: /$
Allow: /*/status
Allow: /*/status/
Allow: /owoembed
Allow: /owoembed/
Allow: /watch?v=dQw4w9WgXcQ
Disallow: /doing-harm-to-others
Disallow: /taking-over-the-world`
DEFAULT_COLOR: '#10A3FF'
};
if (typeof TEST !== 'undefined') {

View file

@ -153,5 +153,19 @@ This is caused by Twitter API downtime or a new bug. Try again in a little while
API_HOST_LIST.split(',')[0]
}">${API_HOST_LIST.split(',')[0]}</a>`,
DEPRECATED_DOMAIN_NOTICE: `We've moved! ➡ fxtwitter.com`,
DEPRECATED_DOMAIN_NOTICE_DISCORD: `We've moved! ➡ fxtwitter.com`
DEPRECATED_DOMAIN_NOTICE_DISCORD: `We've moved! ➡ fxtwitter.com`,
ROBOTS_TXT: `# Yandex crawls far, far heavier than Googlebot and Bingbot combined
User-agent: YandexBot
Disallow: /
User-agent: *
Allow: /$
Allow: /*/status
Allow: /*/status/
Allow: /owoembed
Allow: /owoembed/
Allow: /watch?v=dQw4w9WgXcQ
Disallow: /doing-harm-to-others
Disallow: /taking-over-the-world`
};