mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-03 22:52:36 +02:00
Accepts more Like/Dislike codes
This commit is contained in:
@@ -250,14 +250,22 @@ object LocalCache {
|
|||||||
it.author?.addTaggedPost(note)
|
it.author?.addTaggedPost(note)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.content == "" || event.content == "+" || event.content == "\uD83E\uDD19") {
|
if (
|
||||||
|
event.content == "" ||
|
||||||
|
event.content == "+" ||
|
||||||
|
event.content == "\u2764\uFE0F" || // red heart
|
||||||
|
event.content == "\uD83E\uDD19" || // call me hand
|
||||||
|
event.content == "\uD83D\uDC4D" // thumbs up
|
||||||
|
) {
|
||||||
// Counts the replies
|
// Counts the replies
|
||||||
repliesTo.forEach {
|
repliesTo.forEach {
|
||||||
it.addReaction(note)
|
it.addReaction(note)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.content == "\u26A0\uFE0F") {
|
if (event.content == "!" // nostr_console hide.
|
||||||
|
|| event.content == "\u26A0\uFE0F" // Warning sign
|
||||||
|
) {
|
||||||
// Counts the replies
|
// Counts the replies
|
||||||
repliesTo.forEach {
|
repliesTo.forEach {
|
||||||
it.addReport(note)
|
it.addReport(note)
|
||||||
|
Reference in New Issue
Block a user