about summary refs log tree commit diff
path: root/bskyweb
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 /bskyweb
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 'bskyweb')
-rw-r--r--bskyweb/cmd/bskyweb/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bskyweb/cmd/bskyweb/server.go b/bskyweb/cmd/bskyweb/server.go
index 4208eea2d..89cd112cd 100644
--- a/bskyweb/cmd/bskyweb/server.go
+++ b/bskyweb/cmd/bskyweb/server.go
@@ -606,10 +606,10 @@ type IPCCRequest struct {
 type IPCCResponse struct {
 	CC               string `json:"countryCode"`
 	AgeRestrictedGeo bool   `json:"isAgeRestrictedGeo,omitempty"`
+	AgeBlockedGeo    bool   `json:"isAgeBlockedGeo,omitempty"`
 }
 
-// IP address data is powered by IPinfo
-// https://ipinfo.io
+// This product includes GeoLite2 Data created by MaxMind, available from https://www.maxmind.com.
 func (srv *Server) WebIpCC(c echo.Context) error {
 	realIP := c.RealIP()
 	addr, err := netip.ParseAddr(realIP)