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.
I like this idea!
reply
To clarify, you would only see "your" region if login and on your profile.
If viewing another's profile the field would not populate and be hidden.
reply
Of course, like a self diagnosis tool :)
reply
0 sats \ 1 reply \ @ek 5 Jan
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:
  1. 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?
  2. We just do a simple fetch from the client on page load to a next API endpoint that just echoes the connecting IP
reply