1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-02-03 10:47:35 +01:00

chore: Use MastodonUser.predicate in APIService+Mute

This commit is contained in:
Marcus Kida 2022-11-24 13:24:56 +01:00
parent 65ed6650e8
commit 6be1e502b7
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40

View File

@ -34,7 +34,7 @@ extension APIService {
).singleOutput()
let userIDs = response.value.map { $0.id }
let predicate = NSPredicate(format: "%K IN %@", #keyPath(MastodonUser.id), userIDs)
let predicate = MastodonUser.predicate(domain: authenticationBox.domain, ids: userIDs)
let fetchRequest = MastodonUser.fetchRequest()
fetchRequest.predicate = predicate