about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-08-22 14:55:16 -0500
committerGitHub <noreply@github.com>2025-08-22 14:55:16 -0500
commit912ab1bd9b771cf14c830203332f3620e661a752 (patch)
tree2080675e48c0989b1e6c05272ca9ea2cc1187e6e /src/state
parentf038ac70da530416161e870fbbbd42159cea2bbe (diff)
downloadvoidsky-912ab1bd9b771cf14c830203332f3620e661a752.tar.zst
[LEG-246] Geo overlay (#8881)
* Add AgeBlockedGeo

* Add MaxMind usage text

* Add geo overlay

---------

Co-authored-by: rafael <rafael@blueskyweb.xyz>
Diffstat (limited to 'src/state')
-rw-r--r--src/state/geolocation.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/geolocation.tsx b/src/state/geolocation.tsx
index 4581996a0..a69161324 100644
--- a/src/state/geolocation.tsx
+++ b/src/state/geolocation.tsx
@@ -25,6 +25,7 @@ const onGeolocationUpdate = (
  */
 export const DEFAULT_GEOLOCATION: Device['geolocation'] = {
   countryCode: undefined,
+  isAgeBlockedGeo: undefined,
   isAgeRestrictedGeo: false,
 }
 
@@ -40,6 +41,7 @@ async function getGeolocation(): Promise<Device['geolocation']> {
   if (json.countryCode) {
     return {
       countryCode: json.countryCode,
+      isAgeBlockedGeo: json.isAgeBlockedGeo ?? false,
       isAgeRestrictedGeo: json.isAgeRestrictedGeo ?? false,
     }
   } else {