Respect IP mask when looking up users

This commit is contained in:
mdashlw 2025-03-24 05:38:53 +00:00 committed by GitHub
parent 8af67ab63a
commit 9135b4c143
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ defmodule PhilomenaWeb.IpProfileController do
user_ips =
UserIp
|> where(ip: ^ip)
|> where(fragment("? >>= ip", ^ip))
|> order_by(desc: :updated_at)
|> preload(:user)
|> Repo.all()