Fix condition for moderation log force_password_reset action
This commit is contained in:
parent
99fbe0418a
commit
63afd9a22d
2 changed files with 6 additions and 6 deletions
0
changelog.d/admin-api-log-fix.skip
Normal file
0
changelog.d/admin-api-log-fix.skip
Normal file
|
|
@ -335,13 +335,13 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
||||||
|
|
||||||
if params["password"] do
|
if params["password"] do
|
||||||
User.force_password_reset_async(user)
|
User.force_password_reset_async(user)
|
||||||
end
|
|
||||||
|
|
||||||
ModerationLog.insert_log(%{
|
ModerationLog.insert_log(%{
|
||||||
actor: admin,
|
actor: admin,
|
||||||
subject: [user],
|
subject: [user],
|
||||||
action: "force_password_reset"
|
action: "force_password_reset"
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
json(conn, %{status: "success"})
|
json(conn, %{status: "success"})
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue