pull down to refresh
0 sats \ 5 replies \ @Wumbo 5 Jan \ on: I’m unofficially joining SN’s engineering. What needs doing? Ask_SN
With the new "legal" stuff k00b has been dealing with in regards to IP address and Region
How about in the profile page (example: https://stacker.news/Wumbo) displaying the Country or Region Stacker News think you are coming in from.
Return the the country attribute from the DB mention here. #376372
Maybe as a new line below "longest cowboy streak"
This would help SN users would want to double check their VPN and/or Tor connections.
reply
reply
reply
If we do something like this (not sure if we will), we need to consider the privacy implications. For example, we intend to never store IP addresses.
So something like this will probably need to run purely in the client since even displaying an IP address location touches IP addresses on the server more than we'd like to. At least that would be my educated guess.
reply
I see two ways here:
- We SSR the IP into the page (not sure if this route is SSR'd but guess we'll see). Depends if people wanting to check their IP are using JS or not. Does SN require JS?
- We just do a simple fetch from the client on page load to a next API endpoint that just echoes the connecting IP
reply