chore: Use MastodonUser.predicate in APIService+Mute
This commit is contained in:
parent
65ed6650e8
commit
6be1e502b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue