Fix saved/followed hashtag lookups being case-sensitive

This commit is contained in:
Shadowfacts 2022-11-30 16:46:18 -05:00
parent e005b70071
commit a2b3fc0628
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public final class FollowedHashtag: NSManagedObject {
@nonobjc public class func fetchRequest(name: String) -> NSFetchRequest<FollowedHashtag> {
let req = NSFetchRequest<FollowedHashtag>(entityName: "FollowedHashtag")
req.predicate = NSPredicate(format: "name = %@", name)
req.predicate = NSPredicate(format: "name LIKE[cd] %@", name)
return req
}

View File

@ -20,7 +20,7 @@ public final class SavedHashtag: NSManagedObject {
@nonobjc public class func fetchRequest(name: String) -> NSFetchRequest<SavedHashtag> {
let req = NSFetchRequest<SavedHashtag>(entityName: "SavedHashtag")
req.predicate = NSPredicate(format: "name = %@", name)
req.predicate = NSPredicate(format: "name LIKE[cd] %@", name)
return req
}