tangled
alpha
login
or
join now
dbushell.com
/
attic.social
11
fork
atom
Attic is a cozy space with lofty ambitions.
attic.social
11
fork
atom
overview
issues
pulls
pipelines
use locals rpc client
dbushell.com
1 week ago
3e138124
bbad00da
verified
This commit was signed with the committer's
known signature
.
dbushell.com
SSH Key Fingerprint:
SHA256:Sj5AfJ6VbC0PEnnQD2kGGEiGFwHdFBS/ypN5oifzzFI=
+2
-4
1 changed file
expand all
collapse all
unified
split
src
routes
+page.server.ts
+2
-4
src/routes/+page.server.ts
···
46
46
const record = parseActorProfile({
47
47
displayName: formData.get("displayName"),
48
48
});
49
49
-
const rpc = new Client({ handler: user.session });
50
50
-
const result = await rpc.post("com.atproto.repo.putRecord", {
49
49
+
const result = await user.client.post("com.atproto.repo.putRecord", {
51
50
input: {
52
51
repo: user.did,
53
52
collection: "social.attic.actor.profile",
···
77
76
if (user === undefined) {
78
77
return;
79
78
}
80
80
-
const rpc = new Client({ handler: user.session });
81
81
-
const result = await rpc.post("com.atproto.repo.deleteRecord", {
79
79
+
const result = await user.client.post("com.atproto.repo.deleteRecord", {
82
80
input: {
83
81
repo: user.did,
84
82
collection: "social.attic.actor.profile",