ATProtoKit icon indicating copy to clipboard operation
ATProtoKit copied to clipboard

[Bug]: ATProtoKit.getAuthorFeed() doesn't seem to respect the passed in filter

Open akshatksharma opened this issue 1 year ago • 2 comments

Summary

The ATProtoKit.getAuthorFeed() method doesn't filter posts when a non default filter (AppBskyLexicon.Feed.GetAuthorFeed.Filter) is passed in. I always get postsWithReplies back

Reproduction Steps

Passed in the .postsWithNoReplies option for postFilter: AppBskyLexicon.Feed.GetAuthorFeed.Filter?

let myFeed = try await agent.atProtoClient.getAuthorFeed(by: handle, postFilter: .postsWithNoReplies)

But still received my replies Simulator Screenshot - iPhone 16 Pro - 2024-12-15 at 11 02 38

Can see that some of the rows (like the pins) are not posts but replies on my profile notakshat.bsky.social

Expected Results

To only receive my top level posts and reposts

Actual Results

Received my top level posts, reposts, and replies

What operating systems did you experience this bug? (We'll count Docker as an operating system.)

macOS

Operating System Version

iOS 18

ATProtoKit Version

0.21.1

Additional Context

No response

akshatksharma avatar Dec 15 '24 16:12 akshatksharma

Thanks. I'll investigate. It's probably a simple fix.

MasterJ93 avatar Dec 16 '24 11:12 MasterJ93

Found the issue: I forgot to use .rawValue so it's taking the enum value literally. It'll be resolved in the next update (hopefully early this week).

MasterJ93 avatar Dec 16 '24 12:12 MasterJ93