mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-02 01:35:27 +02:00
Respect IP mask when looking up users
This commit is contained in:
parent
8af67ab63a
commit
9135b4c143
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue