-1
config.txt
-1
config.txt
···
1
-
{"countryCode":"US","regionCode":"CA","ageRestrictedGeos":[],"ageBlockedGeos":[]}
-3
justfile
-3
justfile
+6
-2
src/geolocation/const.ts
+6
-2
src/geolocation/const.ts
···
6
6
/**
7
7
* Default geolocation config.
8
8
*/
9
+
// forks tend to get blocked from the geolocation service bluesky uses,
10
+
// instead of making our own and grabbing peoples location without their consent,
11
+
// lets just force set everyone to be in the US,
12
+
// maybe make a tweak in the future that lets ppl customize this
9
13
export const FALLBACK_GEOLOCATION_SERVICE_RESPONSE: Geolocation = {
10
-
countryCode: undefined,
11
-
regionCode: undefined,
14
+
countryCode: 'US',
15
+
regionCode: 'CA',
12
16
}
-30
src/state/geolocation/const.ts
-30
src/state/geolocation/const.ts
···
1
-
import {type GeolocationStatus} from '#/state/geolocation/types'
2
-
import {BAPP_CONFIG_DEV_URL, IS_DEV} from '#/env'
3
-
import {type Device} from '#/storage'
4
-
5
-
export const IPCC_URL = `https://bsky.app/ipcc`
6
-
export const BAPP_CONFIG_URL_PROD = `/config.txt`
7
-
export const BAPP_CONFIG_URL = IS_DEV
8
-
? (BAPP_CONFIG_DEV_URL ?? BAPP_CONFIG_URL_PROD)
9
-
: BAPP_CONFIG_URL_PROD
10
-
export const GEOLOCATION_CONFIG_URL = BAPP_CONFIG_URL
11
-
12
-
/**
13
-
* Default geolocation config.
14
-
*/
15
-
export const DEFAULT_GEOLOCATION_CONFIG: Device['geolocation'] = {
16
-
countryCode: 'US',
17
-
regionCode: 'CA',
18
-
ageRestrictedGeos: [],
19
-
ageBlockedGeos: [],
20
-
}
21
-
22
-
/**
23
-
* Default geolocation status.
24
-
*/
25
-
export const DEFAULT_GEOLOCATION_STATUS: GeolocationStatus = {
26
-
countryCode: 'US',
27
-
regionCode: 'CA',
28
-
isAgeRestrictedGeo: false,
29
-
isAgeBlockedGeo: false,
30
-
}