[Feature Enhancement]: Support scoped mutes (`onlyReposts` / `onlyQuoteposts`) in `muteActor`
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Swift
- Star
- 226
- Fork
- 40
- Merge trung bình
- 2 giờ 56 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MasterJ93/ATProtoKit
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MasterJ93/ATProtoKit#354 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
MasterJ93/ATProtoKit#352 ·
-
[Feature Enhancement]: Add `sort` parameter to `getQuotes`Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MasterJ93/ATProtoKit#346 · 1 bình luận ·
-
[Feature Request]: Add `app.bsky.actor.contentVisibilityDeclaration` record supportCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởnew feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
MasterJ93/ATProtoKit#350 · 4 bình luận ·
-
enhancement
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
MasterJ93/ATProtoKit#337 · 3 bình luận ·
Tất cả issue của MasterJ93/ATProtoKit
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
area:cli documentation good first issue priority:low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
isaaclins/freesnitch#430 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
heysidhant/appvanish#4 ·
-
bug priority:low status:queued
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày