Add protected tag
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import NoteCard from "@app/components/NoteCard.svelte"
|
||||
import ReactionSummary from "@app/components/ReactionSummary.svelte"
|
||||
import {publishDelete, publishReaction} from "@app/commands"
|
||||
import {PROTECTED} from "@app/state"
|
||||
|
||||
export let url
|
||||
export let event
|
||||
@@ -18,12 +19,12 @@
|
||||
if (reaction) {
|
||||
publishDelete({relays: [url], event: reaction})
|
||||
} else {
|
||||
publishReaction({event, content, relays: [url]})
|
||||
publishReaction({event, content, tags: [PROTECTED], relays: [url]})
|
||||
}
|
||||
}
|
||||
|
||||
const onEmoji = (emoji: NativeEmoji) =>
|
||||
publishReaction({event, relays: [url], content: emoji.unicode})
|
||||
publishReaction({event, content: emoji.unicode, tags: [PROTECTED], relays: [url]})
|
||||
</script>
|
||||
|
||||
<NoteCard {event} class="card2 bg-alt">
|
||||
|
||||
Reference in New Issue
Block a user