Add EditProfile modal
This commit is contained in:
parent
5ae39612d7
commit
9010078489
9 changed files with 177 additions and 8 deletions
|
@ -124,6 +124,17 @@ export async function unfollow(
|
|||
return numDels > 0
|
||||
}
|
||||
|
||||
export async function updateProfile(
|
||||
adx: AdxClient,
|
||||
user: string,
|
||||
profile: bsky.Profile.Record,
|
||||
) {
|
||||
return await adx
|
||||
.repo(user, true)
|
||||
.collection('blueskyweb.xyz:Profiles')
|
||||
.put('Profile', 'profile', {$type: 'blueskyweb.xyz:Profile', ...profile})
|
||||
}
|
||||
|
||||
type WherePred = (_record: GetRecordResponseValidated) => Boolean
|
||||
async function deleteWhere(
|
||||
coll: AdxRepoCollectionClient,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue