Update to latest APIs
This commit is contained in:
parent
349cfe7177
commit
1983512fef
74 changed files with 2334 additions and 525 deletions
|
@ -1,6 +1,6 @@
|
|||
import {makeAutoObservable} from 'mobx'
|
||||
import * as Post from '../../third-party/api/src/types/app/bsky/post'
|
||||
import {AdxUri} from '../../third-party/uri'
|
||||
import {AtUri} from '../../third-party/uri'
|
||||
import {RootStoreModel} from './root-store'
|
||||
|
||||
export type PostEntities = Post.Record['entities']
|
||||
|
@ -76,10 +76,10 @@ export class PostModel implements RemoveIndex<Post.Record> {
|
|||
private async _load() {
|
||||
this._xLoading()
|
||||
try {
|
||||
const urip = new AdxUri(this.uri)
|
||||
const urip = new AtUri(this.uri)
|
||||
const res = await this.rootStore.api.app.bsky.post.get({
|
||||
nameOrDid: urip.host,
|
||||
tid: urip.recordKey,
|
||||
user: urip.host,
|
||||
rkey: urip.rkey,
|
||||
})
|
||||
// TODO
|
||||
// if (!res.valid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue