-
-
Notifications
You must be signed in to change notification settings - Fork 54
Support mastodon 4.4.0 #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support mastodon 4.4.0 #1327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds support for Mastodon 4.4.0 by exposing new tag and account endorsement endpoints, extending instance registration metadata, and updating filter and rule entities.
- Expose
feature
/unfeature
onTags$SelectResource
- Add account endorsement list and
endorse
/unendorse
methods onAccounts$SelectResource
- Extend account creation and instance registration types with
dateOfBirth
,minAge
, andreasonRequired
- Introduce
blur
action to filter registry and addtranslations
to rules
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/mastodon/rest/v1/tags.ts | Added feature and unfeature methods for hashtags |
src/mastodon/rest/v1/accounts.ts | Added dateOfBirth , endorsements list resource, endorse /unendorse methods |
src/mastodon/entities/v2/instance.ts | Added minAge and reasonRequired to instance registration |
src/mastodon/entities/v2/filter.ts | Added blur as a filter action |
src/mastodon/entities/v1/rule.ts | Added translations field on rules |
Comments suppressed due to low confidence (4)
src/mastodon/rest/v1/accounts.ts:303
- Use
@param
instead of@params
for the JSDoc tag to match the style used elsewhere.
* @params meta Metadata
src/mastodon/entities/v2/instance.ts:111
- Remove the redundant "Description:" prefix in the JSDoc comment to stay consistent with neighboring comments.
/** Description: A minimum age required to register, if configured. */
src/mastodon/rest/v1/tags.ts:28
- Add unit or integration tests for
feature
/unfeature
methods to ensure the new endpoints behave as expected.
feature(meta?: HttpMetaParams): Promise<Tag>;
src/mastodon/rest/v1/accounts.ts:307
- Include tests for
endorse
/unendorse
methods to validate that account endorsements are correctly handled.
endorse(meta?: HttpMetaParams): Promise<Relationship>;
size-limit report 📦
|
commit: |
a371f4c
to
c551ecf
Compare
No description provided.