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
1 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,10 @@ export default function NoteFooter(props: NoteFooterProps) {
}
async function repost() {
let evRepost = await publisher.repost(ev);
publisher.broadcast(evRepost);
if (!hasReposted()) {
let evRepost = await publisher.repost(ev);
publisher.broadcast(evRepost);
}
}
function tipButton() {