Fixes multiple likes

This commit is contained in:
Vitor Pamplona 2023-01-25 13:24:56 -03:00
parent e4dfb2b974
commit 4c15420b05

View File

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