Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 647
    • Issues 647
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 89
    • Merge requests 89
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Issues
  • #2999
Closed
Open
Issue created Nov 20, 2022 by ave@aoContributor

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 Nov 20, 2022 by ave
Assignee
Assign to
Time tracking