mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-21 18:40:38 +02:00
Removes the block on Multiple Zaps in a single post (copy paste from the like button, that has a block to avoid multiple likes)
This commit is contained in:
@@ -141,11 +141,6 @@ class Account(
|
|||||||
fun createZapRequestFor(note: Note): LnZapRequestEvent? {
|
fun createZapRequestFor(note: Note): LnZapRequestEvent? {
|
||||||
if (!isWriteable()) return null
|
if (!isWriteable()) return null
|
||||||
|
|
||||||
if (note.hasZapped(userProfile())) {
|
|
||||||
// has already liked this note
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
note.event?.let {
|
note.event?.let {
|
||||||
return LnZapRequestEvent.create(it, userProfile().relays?.keys?.ifEmpty { null } ?: localRelays.map { it.url }.toSet(), loggedIn.privKey!!)
|
return LnZapRequestEvent.create(it, userProfile().relays?.keys?.ifEmpty { null } ?: localRelays.map { it.url }.toSet(), loggedIn.privKey!!)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user