Change follow_operation schema to use type BooleanLike (#301)
authorave <ave@noreply.akkoma>
Thu, 24 Nov 2022 11:27:01 +0000 (11:27 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Thu, 24 Nov 2022 11:27:01 +0000 (11:27 +0000)
commit1c4ca20ff7c7a56e4b28b5c1e4cc21f49853bb9c
tree1e0e1595a24e9ad5456e35bf258ea825f8f324dd
parent4a82f19ce64616a950710cf77035357e7edaaddd
Change follow_operation schema to use type BooleanLike (#301)

Changes follow_operation schema to use BooleanLike instead of :boolean so that strings like "0" and "1" (used by mastodon.py) can be accepted. Rest of file uses the same. For more info please see https://git.pleroma.social/pleroma/pleroma/-/issues/2999

(I'm also sending this here as I'm not hopeful about upstream not ignoring  it)

Co-authored-by: ave <ave@ave.zone>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/301
Co-authored-by: ave <ave@noreply.akkoma>
Co-committed-by: ave <ave@noreply.akkoma>
CHANGELOG.md
lib/pleroma/web/api_spec/operations/account_operation.ex
test/pleroma/web/mastodon_api/controllers/account_controller_test.exs