forked from shadowfacts/Tusker
Fix saved/followed hashtag lookups being case-sensitive
This commit is contained in:
parent
e005b70071
commit
a2b3fc0628
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue