[Feature Enhancement]: Support scoped mutes (`onlyReposts` / `onlyQuoteposts`) in `muteActor`

Aperta
#348 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@KC-2001MS ci sta già lavorando.

Dal 16/11/2026.

  • #349 di @KC-2001MS — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
api, backend

Direzione di ricerca

Start by locating MuteActorRequestBody, muteActor(_:), and ViewerStateDefinition in the AppBskyLexicon and ATProtoKit sources, then read the existing request and viewer state tests. Add support for the two scope inputs and corresponding viewer state fields using the lexicon names in the issue. Done when scoped mute requests encode correctly, viewer state decodes both fields, and tests cover calls with and without a scope.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Summary

The app.bsky.graph.muteActor lexicon now accepts onlyReposts and onlyQuoteposts in its input, and app.bsky.actor.defs#viewerState now includes mutedOnlyReposts and mutedOnlyQuoteposts. ATProtoKit supports neither: MuteActorRequestBody only has actor, and ViewerStateDefinition has no properties for the two new fields.

Pain points
  • muteActor(_:) can only create a full mute, so a scoped mute (e.g. hiding only an account's reposts) can't be created.
  • ViewerStateDefinition has no mutedOnlyReposts / mutedOnlyQuoteposts, so there is no way to tell whether a scoped mute is active.
Considered Alternatives

Sending the muteActor request manually and fetching profiles as raw JSON to read the viewer state.

Is this a breaking change?

No

Additional Context

Proposed changes:

// AppBskyLexicon.Graph.MuteActorRequestBody
public let isOnlyReposts: Bool?      // "onlyReposts"
public let isOnlyQuotePosts: Bool?   // "onlyQuoteposts"

// ATProtoKit
public func muteActor(
    _ actor: String,
    isOnlyReposts: Bool? = nil,
    isOnlyQuotePosts: Bool? = nil
) async throws

// AppBskyLexicon.Actor.ViewerStateDefinition
public let areRepostsMuted: Bool?    // "mutedOnlyReposts"
public let areQuotePostsMuted: Bool? // "mutedOnlyQuoteposts"

Per the lexicon, calling muteActor again on an existing mute replaces its stored scope instead of merging it, and a call with no scope set creates a full mute. unmuteActor is unchanged.

Lingua principale
Swift
Stelle
226
Fork
40
Merge medio
2h 56m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MasterJ93/ATProtoKit

Tutte le issue di MasterJ93/ATProtoKit

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.