Skip to content

Add new quote fields to status object#1354

Merged
neet merged 1 commit into
neet:mainfrom
reckter:quote-creation
Nov 20, 2025
Merged

Add new quote fields to status object#1354
neet merged 1 commit into
neet:mainfrom
reckter:quote-creation

Conversation

@reckter

@reckter reckter commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

implements #1353

I'm not sure what else needs to be done, feel flee to direct me, or take over :)

Copilot AI review requested due to automatic review settings November 18, 2025 16:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for quote-related fields when creating statuses, implementing issue #1353. The changes introduce two new optional parameters to CreateStatusParamsBase: quotedStatusId for referencing a quoted status, and quoteApprovalPolicy to control who can quote a status.

Key changes:

  • Added QuoteApprovalPolicyRegistry interface and QuoteApprovalPolicy type for type-safe policy values
  • Added quotedStatusId parameter to specify the status being quoted
  • Added quoteApprovalPolicy parameter to control quote permissions (public, followers, nobody)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +33 to +36
/** Sets who is allowed to quote the status. When omitted, the user’s default setting will be used instead. Ignored if visibility is private or direct, in which case the policy will always be set to nobody.
public = Anyone is allowed to quote this status and will have their quote automatically accepted, unless they are blocked.
followers = Only followers and the author are allowed to quote this status, and will have their quote automatically accepted.
nobody = Only the author is allowed to quote the status.*/

Copilot AI Nov 18, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation for quoteApprovalPolicy should follow the established pattern used elsewhere in the codebase. Based on similar fields like ListRepliesPolicy, the enum values should be formatted in a multi-line JSDoc comment with:

  • Each value on its own line
  • Backticks around the value names
  • Proper spacing with blank lines between entries

Example format:

/**
 * Sets who is allowed to quote the status. When omitted, the user's default setting will be used instead. Ignored if visibility is private or direct, in which case the policy will always be set to nobody.
 *
 * `public` = Anyone is allowed to quote this status and will have their quote automatically accepted, unless they are blocked.
 *
 * `followers` = Only followers and the author are allowed to quote this status, and will have their quote automatically accepted.
 *
 * `nobody` = Only the author is allowed to quote the status.
 */
Suggested change
/** Sets who is allowed to quote the status. When omitted, the users default setting will be used instead. Ignored if visibility is private or direct, in which case the policy will always be set to nobody.
public = Anyone is allowed to quote this status and will have their quote automatically accepted, unless they are blocked.
followers = Only followers and the author are allowed to quote this status, and will have their quote automatically accepted.
nobody = Only the author is allowed to quote the status.*/
/**
* Sets who is allowed to quote the status. When omitted, the user's default setting will be used instead. Ignored if visibility is private or direct, in which case the policy will always be set to nobody.
*
* `public` = Anyone is allowed to quote this status and will have their quote automatically accepted, unless they are blocked.
*
* `followers` = Only followers and the author are allowed to quote this status, and will have their quote automatically accepted.
*
* `nobody` = Only the author is allowed to quote the status.
*/

Copilot uses AI. Check for mistakes.
@pkg-pr-new

pkg-pr-new Bot commented Nov 20, 2025

Copy link
4fc82a6_ " data-view-component="true" class="dropdown-item btn-link"> Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/neet/masto.js/masto@1354

commit: 4fc82a6

@neet neet enabled auto-merge (squash) November 20, 2025 06:52
@neet neet merged commit 3834c6a into neet:main Nov 20, 2025
13 checks passed
@neet neet mentioned this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants