Add only_reblogs parameter to account statuses API
Implement filtering to show only reblogs/reposts in user status queries. This complements the existing exclude_reblogs parameter. Supports both boolean and "1" string values for consistency with other API parameters.
This commit is contained in:
parent
b082e1f86b
commit
331f21111c
3 changed files with 21 additions and 0 deletions
|
|
@ -143,6 +143,12 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
|
|||
"Include statuses from muted accounts."
|
||||
),
|
||||
Operation.parameter(:exclude_reblogs, :query, BooleanLike.schema(), "Exclude reblogs"),
|
||||
Operation.parameter(
|
||||
:only_reblogs,
|
||||
:query,
|
||||
BooleanLike.schema(),
|
||||
"Include only reblogs"
|
||||
),
|
||||
Operation.parameter(:exclude_replies, :query, BooleanLike.schema(), "Exclude replies"),
|
||||
Operation.parameter(
|
||||
:exclude_visibilities,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue