Follow relay hints in embeds

This commit is contained in:
Jonathan Staab 2023-04-05 15:42:51 -05:00
parent 5e9c9cfef1
commit 4edefc216f

View File

@ -89,9 +89,12 @@
}
const loadQuote = async ({id, relays}) => {
// Follow relay hints
relays = (relays || []).map(objOf("url")).concat(Tags.from(note).equals(id).relays())
try {
const [event] = await network.load({
relays: sampleRelays((relays || []).map(objOf("url"))),
relays: sampleRelays(relays),
filter: [{ids: [id]}],
})