Avoids publishing with two equal hashtags.
This commit is contained in:
@@ -100,8 +100,11 @@ class TextNoteEvent(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
findHashtags(msg).forEach {
|
findHashtags(msg).forEach {
|
||||||
|
val lowercaseTag = it.lowercase()
|
||||||
tags.add(arrayOf("t", it))
|
tags.add(arrayOf("t", it))
|
||||||
tags.add(arrayOf("t", it.lowercase()))
|
if (it != lowercaseTag) {
|
||||||
|
tags.add(arrayOf("t", it.lowercase()))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extraTags?.forEach { tags.add(arrayOf("t", it)) }
|
extraTags?.forEach { tags.add(arrayOf("t", it)) }
|
||||||
zapReceiver?.forEach {
|
zapReceiver?.forEach {
|
||||||
|
|||||||
Reference in New Issue
Block a user