[Feature Enhancement]: Support scoped mutes (`onlyReposts` / `onlyQuoteposts`) in `muteActor`
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
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
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.ViewerStateDefinitionhas nomutedOnlyReposts/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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MasterJ93/ATProtoKit
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
MasterJ93/ATProtoKit#354 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
MasterJ93/ATProtoKit#352 ·
-
[Feature Enhancement]: Add `sort` parameter to `getQuotes`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MasterJ93/ATProtoKit#346 · 1 commento ·
-
[Feature Request]: Add `app.bsky.actor.contentVisibilityDeclaration` record supportForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertanew feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
MasterJ93/ATProtoKit#350 · 4 commenti ·
-
enhancement
Difficoltà 4/5 1-2 giorni Idoneità per principianti 52/100
MasterJ93/ATProtoKit#337 · 3 commenti ·
Tutte le issue di MasterJ93/ATProtoKit
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
area:cli documentation good first issue priority:low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
isaaclins/freesnitch#430 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
heysidhant/appvanish#4 ·
-
bug priority:low status:queued
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno