Fixes multiple likes

pull/37/head
Vitor Pamplona 2023-01-25 13:24:56 -03:00
rodzic e4dfb2b974
commit 4c15420b05
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
}