Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client
117
fork

Configure Feed

Select the types of activity you want to include in your feed.

hacky geolocation moments

authored by

Daniela Henkel and committed by tangled.org a2127d47 7f86c6d3

+6 -36
-1
config.txt
··· 1 - {"countryCode":"US","regionCode":"CA","ageRestrictedGeos":[],"ageBlockedGeos":[]}
-3
justfile
··· 44 44 # copy our static pages over! 45 45 cp -r witchsky-static-about web-build/about 46 46 47 - # temporarily copy over out bootleg config.txt to simulate geolocation 48 - cp config.txt web-build/ 49 - 50 47 [group('dev')] 51 48 dev-android-setup: prebuild-android 52 49 yarn android
+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
··· 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 - }