Skip to content

#678 Mastodon 4.6.0: Update accounts API#709

Draft
PattaFeuFeu wants to merge 12 commits into
masterfrom
improvement/#678/update-accounts
Draft

#678 Mastodon 4.6.0: Update accounts API#709
PattaFeuFeu wants to merge 12 commits into
masterfrom
improvement/#678/update-accounts

Conversation

@PattaFeuFeu

@PattaFeuFeu PattaFeuFeu commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Description

Relates to: #678

Note

Based on #708, so merge that one first. I’ll keep this one here a draft until then.

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Dependency update / replacement

Breaking Changes

ProfileFields extraction

ProfileFields moved from being a subclass of AccountMethods to being its own class in the social.bigbone.Parameters package.

Imports change to:

import social.bigbone.api.entity.ProfileFieldName
import social.bigbone.api.entity.ProfileFieldValue
import social.bigbone.api.entity.ProfileFields

ProfileFields “rules”

Character count

Previously, we hardcoded a max character count for both ProfileFieldName and ProfileFieldValue. With Mastodon 4.6.0, 255 characters are only the default that may be overridden by an instance. We have removed the hardcoded character limit and ask callers to check Instance properties first.

Fields count

Same with the amount of fields. Previously, a maximum of four profile fields was enforced. With Mastodon 4.6.0, that count is officially configurable, but still defaulting to 4. To account for that, ProfileFields change from a data class with 4 values to a value class which wraps a Map<ProfileFieldName, ProfileFieldValue> which may contain any amount of fields. Again, callers are asked to check Instance properties first to ensure correct max count matching the instance.

How Has This Been Tested?

Mandatory Checklist

  • I ran gradle check and there were no errors reported
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally with my changes
  • I have added KDoc documentation to all public methods

Optional checks

  • In case you worked on a new feature: Did you also implement the reactive endpoint (bigbone-rx)?
  • In case you added new *Methods classes: Did you also reference it in the MastodonClient main class?
  • Did you also update the documentation in the /docs folder (e.g. API Coverage page)?

@PattaFeuFeu
PattaFeuFeu requested a review from bocops June 13, 2026 15:34
@PattaFeuFeu PattaFeuFeu self-assigned this Jun 13, 2026
@PattaFeuFeu PattaFeuFeu added enhancement Improvement of an existing feature, request, entity breaking Incompatible with previous versions labels Jun 13, 2026
@PattaFeuFeu
PattaFeuFeu force-pushed the improvement/#678/update-accounts branch from 9af713c to 6e82aa1 Compare June 14, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Incompatible with previous versions enhancement Improvement of an existing feature, request, entity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant