Skip to content

Commit

Permalink
Fix crucial typo so that we filter the incoming records, not the exis…
Browse files Browse the repository at this point in the history
…ting ones.
  • Loading branch information
whattherestimefor committed Dec 17, 2024
1 parent 335e682 commit 34cf069
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final public class FeedDataController {

public func setRecordsAfterFiltering(_ newRecords: [MastodonFeed]) async {
guard let filterBox = StatusFilterService.shared.activeFilterBox else { self.records = newRecords; return }
self.records = await self.filter(self.records, forFeed: kind, with: filterBox)
self.records = await self.filter(newRecords, forFeed: kind, with: filterBox)
}

public func appendRecordsAfterFiltering(_ additionalRecords: [MastodonFeed]) async {
Expand Down

0 comments on commit 34cf069

Please sign in to comment.