mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 20:56:15 +02:00
Fixes multiple likes
This commit is contained in:
@@ -90,7 +90,7 @@ class Account(
|
|||||||
fun reactTo(note: Note) {
|
fun reactTo(note: Note) {
|
||||||
if (!isWriteable()) return
|
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
|
// has already liked this note
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user