AdminAPI: return last_known_ip, fixes #1708
This commit is contained in:
parent
4c76e3e3b7
commit
490ca3be58
@ -80,7 +80,8 @@ defmodule Pleroma.Web.AdminAPI.AccountView do
|
||||
"approval_pending" => user.approval_pending,
|
||||
"url" => user.uri || user.ap_id,
|
||||
"registration_reason" => user.registration_reason,
|
||||
"actor_type" => user.actor_type
|
||||
"actor_type" => user.actor_type,
|
||||
"last_known_ip" => user.last_known_ip
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -963,7 +963,8 @@ defmodule Pleroma.Web.AdminAPI.UserControllerTest do
|
||||
"approval_pending" => false,
|
||||
"url" => user.ap_id,
|
||||
"registration_reason" => nil,
|
||||
"actor_type" => "Person"
|
||||
"actor_type" => "Person",
|
||||
"last_known_ip" => nil
|
||||
}
|
||||
|> Map.merge(attrs)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user