Mastodon admin API v2 improvements

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2026-02-27 22:34:18 +01:00 • committed by nicole mikołajczyk
commit 8626a337f8
4 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ defmodule Pleroma.Web.ApiSpec.MastodonAdmin.AccountOperation do
:active,
:query,
:boolean,
"Filter for currently active accounts??"
"Filter for currently active accounts?"
),
Operation.parameter(
:pending,
@ -327,8 +327,8 @@ defmodule Pleroma.Web.ApiSpec.MastodonAdmin.AccountOperation do
}
}
},
locale: %Schema{type: :string, format: "date-time", nullable: true},
invite_request: %Schema{type: :string, format: "date-time", nullable: true},
locale: %Schema{type: :string, nullable: true},
invite_request: %Schema{type: :string, nullable: true},
role: %Schema{type: :string, nullable: true},
confirmed: %Schema{type: :boolean},
approved: %Schema{type: :boolean},

View file

@ -119,11 +119,11 @@ defmodule Pleroma.Web.ApiSpec.MastodonAdmin.ReportOperation do
account: AccountOperation.account(),
target_account: AccountOperation.account(),
assigned_account: %Schema{
type: AccountOperation.account(),
oneOf: [AccountOperation.account()],
nullable: true
},
action_taken_by_account: %Schema{
type: AccountOperation.account(),
oneOf: [AccountOperation.account()],
nullable: true
},
statuses: %Schema{