Fix storage access
This commit is contained in:
parent
d6669f42c1
commit
268028a968
4 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
onSubmit({
|
onSubmit({
|
||||||
content: $editor!.getText({blockSeparator: "\n"}).trim(),
|
content: $editor!.getText({blockSeparator: "\n"}).trim(),
|
||||||
tags: $editor!.storage.welshman.getEditorTags(),
|
tags: $editor!.storage.nostr.getEditorTags(),
|
||||||
})
|
})
|
||||||
|
|
||||||
$editor!.chain().clearContent().run()
|
$editor!.chain().clearContent().run()
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
["location", location],
|
["location", location],
|
||||||
["start", dateToSeconds(start).toString()],
|
["start", dateToSeconds(start).toString()],
|
||||||
["end", dateToSeconds(end).toString()],
|
["end", dateToSeconds(end).toString()],
|
||||||
...$editor.storage.welshman.getEditorTags(),
|
...$editor.storage.nostr.getEditorTags(),
|
||||||
PROTECTED,
|
PROTECTED,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const tags = [
|
const tags = [
|
||||||
...$editor.storage.welshman.getEditorTags(),
|
...$editor.storage.nostr.getEditorTags(),
|
||||||
tagRoom(GENERAL, url),
|
tagRoom(GENERAL, url),
|
||||||
["title", title],
|
["title", title],
|
||||||
PROTECTED,
|
PROTECTED,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
if ($uploading) return
|
if ($uploading) return
|
||||||
|
|
||||||
const content = $editor.getText({blockSeparator: "\n"}).trim()
|
const content = $editor.getText({blockSeparator: "\n"}).trim()
|
||||||
const tags = [...$editor.storage.welshman.getEditorTags(), tagRoom(GENERAL, url), PROTECTED]
|
const tags = [...$editor.storage.nostr.getEditorTags(), tagRoom(GENERAL, url), PROTECTED]
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
return pushToast({
|
return pushToast({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue