mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 03:56:24 +02:00
Fixes bug on searching for geohashes on addresses
This commit is contained in:
@@ -339,19 +339,9 @@ class User(
|
|||||||
|
|
||||||
fun isFollowing(user: User): Boolean = latestContactList?.isTaggedUser(user.pubkeyHex) ?: false
|
fun isFollowing(user: User): Boolean = latestContactList?.isTaggedUser(user.pubkeyHex) ?: false
|
||||||
|
|
||||||
fun isFollowingHashtag(tag: String): Boolean {
|
fun isFollowingHashtag(tag: String) = latestContactList?.isTaggedHash(tag) ?: false
|
||||||
return latestContactList?.unverifiedFollowTagSet()?.map { it.lowercase() }?.toSet()?.let {
|
|
||||||
return tag.lowercase() in it
|
|
||||||
}
|
|
||||||
?: false
|
|
||||||
}
|
|
||||||
|
|
||||||
fun isFollowingGeohash(geoTag: String): Boolean {
|
fun isFollowingGeohash(geoTag: String) = latestContactList?.isTaggedGeoHash(geoTag) ?: false
|
||||||
return latestContactList?.unverifiedFollowAddressSet()?.toSet()?.let {
|
|
||||||
return geoTag.lowercase() in it
|
|
||||||
}
|
|
||||||
?: false
|
|
||||||
}
|
|
||||||
|
|
||||||
fun transientFollowCount(): Int? = latestContactList?.unverifiedFollowKeySet()?.size
|
fun transientFollowCount(): Int? = latestContactList?.unverifiedFollowKeySet()?.size
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user