diff options
Diffstat (limited to 'src/state/models/reposted-by-view.ts')
-rw-r--r-- | src/state/models/reposted-by-view.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/state/models/reposted-by-view.ts b/src/state/models/reposted-by-view.ts index 211a755dc..4c61bafdc 100644 --- a/src/state/models/reposted-by-view.ts +++ b/src/state/models/reposted-by-view.ts @@ -1,12 +1,10 @@ import {makeAutoObservable, runInAction} from 'mobx' import {AtUri} from '../../third-party/uri' import * as GetRepostedBy from '../../third-party/api/src/client/types/app/bsky/feed/getRepostedBy' +import {Main as DeclRef} from '../../third-party/api/src/client/types/app/bsky/system/declRef' import {RootStoreModel} from './root-store' -import {Declaration} from './_common' -type RepostedByItem = GetRepostedBy.OutputSchema['repostedBy'][number] - -export class RepostedByViewItemModel implements RepostedByItem { +export class RepostedByViewItemModel implements GetRepostedBy.RepostedBy { // ui state _reactKey: string = '' @@ -14,7 +12,8 @@ export class RepostedByViewItemModel implements RepostedByItem { did: string = '' handle: string = '' displayName: string = '' - declaration: Declaration = {cid: '', actorType: ''} + avatar?: string + declaration: DeclRef = {cid: '', actorType: ''} createdAt?: string indexedAt: string = '' |