tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
this is what's up
moth11.net
4 months ago
708bf0f9
d2d8a9f0
+4
-4
1 changed file
expand all
collapse all
unified
split
src
lib
wscontext.svelte.ts
+4
-4
src/lib/wscontext.svelte.ts
···
11
11
// so i want to make that side of things better
12
12
type ATPBlob = {
13
13
$type: string
14
14
-
ref: string
14
14
+
ref: {
15
15
+
$link: string
16
16
+
}
15
17
mimeType: string
16
18
size: number
17
19
}
···
236
238
}).then((val) => console.log(val), (val) => console.log(val))
237
239
}, 2000)
238
240
})
239
239
-
const contentAddress = `${api}/lrc/getImage?handle=${this.handle}&cid=${this.atpblob.ref.link}`
241
241
+
const contentAddress = `${api}/lrc/getImage?handle=${this.handle}&cid=${this.atpblob.ref["$link"]}`
240
242
if (this.mediaactive) {
241
243
pubImage(alt, contentAddress, this)
242
244
}
···
263
265
}).then((response) => {
264
266
if (response.ok) {
265
267
response.json().then((atpblob) => {
266
266
-
267
267
-
console.log(atpblob)
268
268
this.atpblob = atpblob
269
269
}
270
270
)