Skip to content

Commit

Permalink
Fixes bug on searching for geohashes on addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Nov 18, 2024
1 parent fb058f9 commit 4651074
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions amethyst/src/main/java/com/vitorpamplona/amethyst/model/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -339,19 +339,9 @@ class User(

fun isFollowing(user: User): Boolean = latestContactList?.isTaggedUser(user.pubkeyHex) ?: false

fun isFollowingHashtag(tag: String): Boolean {
return latestContactList?.unverifiedFollowTagSet()?.map { it.lowercase() }?.toSet()?.let {
return tag.lowercase() in it
}
?: false
}
fun isFollowingHashtag(tag: String) = latestContactList?.isTaggedHash(tag) ?: false

fun isFollowingGeohash(geoTag: String): Boolean {
return latestContactList?.unverifiedFollowAddressSet()?.toSet()?.let {
return geoTag.lowercase() in it
}
?: false
}
fun isFollowingGeohash(geoTag: String) = latestContactList?.isTaggedGeoHash(geoTag) ?: false

fun transientFollowCount(): Int? = latestContactList?.unverifiedFollowKeySet()?.size

Expand Down

0 comments on commit 4651074

Please sign in to comment.