mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Follow relay hints in embeds
This commit is contained in:
parent
5e9c9cfef1
commit
4edefc216f
@ -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]}],
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user