bug: prevent repost

This commit is contained in:
Kieran 2023-01-17 13:04:07 +00:00
parent 96d2fdcaac
commit 13b5ca124f
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -62,9 +62,11 @@ export default function NoteFooter(props: NoteFooterProps) {
} }
async function repost() { async function repost() {
if (!hasReposted()) {
let evRepost = await publisher.repost(ev); let evRepost = await publisher.repost(ev);
publisher.broadcast(evRepost); publisher.broadcast(evRepost);
} }
}
function tipButton() { function tipButton() {
let service = author?.lud16 || author?.lud06; let service = author?.lud16 || author?.lud06;