TODO REVERT THESE CHANGES

This commit is contained in:
Hailey
2024-04-23 10:45:13 -07:00
parent 9c95365090
commit 279f717f30
3 changed files with 15 additions and 4 deletions
+8 -2
View File
@@ -1,7 +1,8 @@
import {AtUri} from '@atproto/api'
import {BSKY_SERVICE} from 'lib/constants'
import TLDs from 'tlds'
import psl from 'psl'
import TLDs from 'tlds'
import {BSKY_SERVICE} from 'lib/constants'
export const BSKY_APP_HOST = 'https://bsky.app'
const BSKY_TRUSTED_HOSTS = [
@@ -98,6 +99,11 @@ export function isBskyRSSUrl(url: string): boolean {
}
export function isExternalUrl(url: string): boolean {
if (__DEV__ && url.startsWith('http://localhost:19006')) {
console.warn('REVERT ME')
return false
}
const external = !isBskyAppUrl(url) && url.startsWith('http')
const rss = isBskyRSSUrl(url)
return external || rss