Narrow down the condition slightly
This commit is contained in:
@@ -4,6 +4,7 @@ import * as WebBrowser from 'expo-web-browser'
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
createBskyAppAbsoluteUrl,
|
createBskyAppAbsoluteUrl,
|
||||||
|
isBskyAppUrl,
|
||||||
isBskyRSSUrl,
|
isBskyRSSUrl,
|
||||||
isRelativeUrl,
|
isRelativeUrl,
|
||||||
} from '#/lib/strings/url-helpers'
|
} from '#/lib/strings/url-helpers'
|
||||||
@@ -28,7 +29,7 @@ export function useOpenLink() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isNative && !url.startsWith('mailto:')) {
|
if (isNative && !url.startsWith('mailto:')) {
|
||||||
if (!optOutOfUtm) {
|
if (!optOutOfUtm && !isBskyAppUrl(url) && url.startsWith('http')) {
|
||||||
url = addUtmSource(url)
|
url = addUtmSource(url)
|
||||||
}
|
}
|
||||||
if (override === undefined && enabled === undefined) {
|
if (override === undefined && enabled === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user