Fix follows
parent
d3707f30e3
commit
f6b3e5f9e0
|
@ -111,12 +111,18 @@ export async function unrepost(store: RootStoreModel, repostUri: string) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function follow(store: RootStoreModel, subject: string) {
|
export async function follow(
|
||||||
// TODO NOW needs update
|
store: RootStoreModel,
|
||||||
|
subjectDid: string,
|
||||||
|
subjectDeclarationCid: string,
|
||||||
|
) {
|
||||||
return await store.api.app.bsky.graph.follow.create(
|
return await store.api.app.bsky.graph.follow.create(
|
||||||
{did: store.me.did || ''},
|
{did: store.me.did || ''},
|
||||||
{
|
{
|
||||||
subject,
|
subject: {
|
||||||
|
did: subjectDid,
|
||||||
|
declarationCid: subjectDeclarationCid,
|
||||||
|
},
|
||||||
createdAt: new Date().toISOString(),
|
createdAt: new Date().toISOString(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -98,7 +98,11 @@ export class ProfileViewModel {
|
||||||
this.myState.follow = undefined
|
this.myState.follow = undefined
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const res = await apilib.follow(this.rootStore, this.did)
|
const res = await apilib.follow(
|
||||||
|
this.rootStore,
|
||||||
|
this.did,
|
||||||
|
this.declaration.cid,
|
||||||
|
)
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
this.followersCount++
|
this.followersCount++
|
||||||
this.myState.follow = res.uri
|
this.myState.follow = res.uri
|
||||||
|
|
22
todos.txt
22
todos.txt
|
@ -2,26 +2,27 @@ Paul's todo list
|
||||||
|
|
||||||
- General
|
- General
|
||||||
- Update to RN 0.70
|
- Update to RN 0.70
|
||||||
- Cache some profile/userinfo lookups
|
> Cache some profile/userinfo lookups
|
||||||
- Cursor behaviors on all views
|
- Cursor behaviors on all views
|
||||||
- Update swipe behaviors: edge always goes back, leftmost always goes back, main connects to selector if present
|
- Update swipe behaviors: edge always goes back, leftmost always goes back, main connects to selector if present
|
||||||
- Onboarding flow
|
- Onboarding flow
|
||||||
- Confirm email
|
> Confirm email
|
||||||
- Setup rpfoile?
|
- Setup profile?
|
||||||
- Create scene
|
- Create scene
|
||||||
- Set profile during creation
|
> Set profile during creation
|
||||||
- Discover scenes view
|
- Discover scenes view
|
||||||
- *
|
- *
|
||||||
- Invite to scene
|
- Invite to scene
|
||||||
- User search
|
- User search
|
||||||
- Filter out scenes from suggestions
|
> Filter out scenes from suggestions
|
||||||
- Filter out unconfirmed invites from suggestions
|
> Filter out unconfirmed invites from suggestions
|
||||||
- Use pagination to make sure there are suggestions
|
- Use pagination to make sure there are suggestions
|
||||||
- Unconfirmed invites
|
- Unconfirmed invites
|
||||||
- User profile
|
- User profile
|
||||||
- Scene
|
- Scene
|
||||||
- Trending
|
> Trending
|
||||||
- Edit profile
|
> Edit profile
|
||||||
|
> Remove member
|
||||||
- Reply gating
|
- Reply gating
|
||||||
- Composer
|
- Composer
|
||||||
- View on post
|
- View on post
|
||||||
|
@ -35,8 +36,7 @@ Paul's todo list
|
||||||
- Follows list
|
- Follows list
|
||||||
- Members list
|
- Members list
|
||||||
- Bugs
|
- Bugs
|
||||||
- Create account broken
|
> Create account broken
|
||||||
- Follows are broken
|
> Auth token refresh seems broken
|
||||||
- Auth token refresh seems broken
|
|
||||||
- Check that sub components arent reloading too much
|
- Check that sub components arent reloading too much
|
||||||
- Titles are getting screwed up (possibly swipe related)
|
- Titles are getting screwed up (possibly swipe related)
|
Loading…
Reference in New Issue