follow_operation does not properly use BooleanLike
Environment
- Installation type (OTP or From Source): OTP
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): v2.4.4
- Elixir version (
elixir -v
for from source installations, N/A for OTP): N/A - Operating system: Alpine
- PostgreSQL version (
psql -V
): Not relevant
Bug description
Similar to #1782 (closed), caused by the way mastodon.py
operates (sends a string, results in a 400 reblogs - Invalid boolean. Got: string.
), effectively breaking follow functionality of the library.
The line in question that causes this is https://git.pleroma.social/pleroma/pleroma/-/blob/v2.4.4/lib/pleroma/web/api_spec/operations/account_operation.ex#L226 (and on develop, the one for notify
too, a couple lines below), and can be fixed by changing type: :boolean,
to type: BooleanLike,
. All other parameters in this file use BooleanLike
.
MR: !3787 (merged)
Edited by ave