diff options
Diffstat (limited to 'src/state/lib/api.ts')
-rw-r--r-- | src/state/lib/api.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts index 701475532..9bc19b78c 100644 --- a/src/state/lib/api.ts +++ b/src/state/lib/api.ts @@ -111,12 +111,18 @@ export async function unrepost(store: RootStoreModel, repostUri: string) { }) } -export async function follow(store: RootStoreModel, subject: string) { - // TODO NOW needs update +export async function follow( + store: RootStoreModel, + subjectDid: string, + subjectDeclarationCid: string, +) { return await store.api.app.bsky.graph.follow.create( {did: store.me.did || ''}, { - subject, + subject: { + did: subjectDid, + declarationCid: subjectDeclarationCid, + }, createdAt: new Date().toISOString(), }, ) |