kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixes multiple likes
rodzic
e4dfb2b974
commit
4c15420b05
|
@ -90,7 +90,7 @@ class Account(
|
|||
fun reactTo(note: Note) {
|
||||
if (!isWriteable()) return
|
||||
|
||||
if (note.reactions.firstOrNull { it.author == userProfile() && it.event?.content == "+️" } != null) {
|
||||
if (note.reactions.firstOrNull { it.author == userProfile() && it.event?.content == "+" } != null) {
|
||||
// has already liked this note
|
||||
return
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue