Fix writeTo

This commit is contained in:
Jonathan Staab 2023-05-12 15:06:08 -07:00
parent ffd7a148db
commit 1fd48f5cd2
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Current
- [ ] Add preview proxy thing
- [ ] Open embedded pubkeys and stuff in modals
- [ ] Handle embedded naddrs http://localhost:5173/nevent1qqs0sp3dvtvd9t8glg8l4t4lhamvk4092mnqqtcklylwn50l0fxh75qpzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxgcv4y0g
- [ ] Add curated relay list, and an easy way to view content on the relays

View File

@ -30,7 +30,12 @@
let image = null
let compose = null
let showSettings = false
let relays = writable(getUserWriteRelays())
let relays = writable(
(writeTo ? writeTo.map(url => ({url, score: 1})) : getUserWriteRelays()) as Array<{
url: string
score: number
}>
)
const onSubmit = async () => {
let {content, mentions, topics} = compose.parse()