Fix default zap split

This commit is contained in:
Jon Staab 2024-06-24 15:11:35 -07:00
parent 5075bccd1a
commit 95c08ba3b9
2 changed files with 8 additions and 1 deletions

View File

@ -149,7 +149,7 @@
const startZap = () => {
const zapTags = tags.whereKey("zap")
const defaultSplit = ["zap", ...mention(note.pubkey).slice(1), "1"]
const defaultSplit = ["zap", ...mention(note.pubkey).slice(1, 3), "1"]
const splits = zapTags.exists() ? zapTags.unwrap() : [defaultSplit]
router

View File

@ -721,6 +721,13 @@ export const updateSingleton = async (kind: number, modifyTags: ModifyTags) => {
const template = await encryptable.reconcile(encrypt)
if (window.location.origin.includes('localhost')) {
if (kind === MUTES) {
alert("Publishing mutes")
console.trace(template)
}
}
await createAndPublish({...template, content, relays})
}