mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-30 00:41:12 +00:00
Fix default zap split
This commit is contained in:
parent
5075bccd1a
commit
95c08ba3b9
@ -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
|
||||
|
@ -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})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user