mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-10 20:07:41 -06:00
only hide ip if it's not the same as user_ip
This commit is contained in:
@@ -182,7 +182,7 @@ async def get_ips(request: Request, response: Response):
|
||||
return {
|
||||
"ips": [
|
||||
responses.SeenIP(
|
||||
ip=hide_ip(ip.ip),
|
||||
ip=hide_ip(ip.ip) if ip.ip != user_ip else ip.ip,
|
||||
last_seen=human_readable.date_time(ip.last_seen),
|
||||
count=ip.count,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user