mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-12 20:12:02 -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 {
|
return {
|
||||||
"ips": [
|
"ips": [
|
||||||
responses.SeenIP(
|
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),
|
last_seen=human_readable.date_time(ip.last_seen),
|
||||||
count=ip.count,
|
count=ip.count,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user