about summary refs log tree commit diff
path: root/src/state/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/lib')
-rw-r--r--src/state/lib/api.ts12
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(),
     },
   )