mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-08 20:08:06 +02:00
Avoids publishing with two equal hashtags.
This commit is contained in:
parent
38e701a363
commit
5deb9af477
@ -100,8 +100,11 @@ class TextNoteEvent(
|
||||
)
|
||||
}
|
||||
findHashtags(msg).forEach {
|
||||
val lowercaseTag = it.lowercase()
|
||||
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)) }
|
||||
zapReceiver?.forEach {
|
||||
|
Loading…
x
Reference in New Issue
Block a user