···
: "https://plc.directory/" + did,
69
-
return res.json().then((doc) => {
69
+
return await res.json().then((doc) => {
for (const service of doc.service) {
if (service.id.includes("#atproto_pds")) {
return service.serviceEndpoint;
···
123
+
const res = await fetch(
124
+
did.startsWith("did:web")
125
+
? "https://" + did.split(":")[2] + "/.well-known/did.json"
126
+
: "https://plc.directory/" + did,
129
+
const handle = await res.json().then((doc) => {
130
+
for (const alias of doc.alsoKnownAs) {
131
+
if (alias.includes("at://")) {
132
+
return alias.split("//")[1];
if (form.deleted && e.message.includes("not found")) {
followRecords[did].toBeDeleted = true;
125
-
updateNotices(`Found deleted account: ${did}`);
139
+
updateNotices(`Found deleted account: ${did} (${handle})`);
} else if (form.deactivated && e.message.includes("deactivated")) {
followRecords[did].toBeDeleted = true;
128
-
updateNotices(`Found deactivated account: ${did}`);
142
+
updateNotices(`Found deactivated account: ${did} (${handle})`);
setProgress(progress() + 1);
···
<h1>cleanfollow-bsky</h1>
<div class={styles.Warning}>
<p>Unfollows all blocked by, deleted, and deactivated accounts</p>
210
-
You can use the{" "}
211
-
<a href="https://web.plc.directory/resolve">DID PLC Directory</a> to
212
-
check the identity behind a DID
<a href="https://github.com/notjuliet/cleanfollow-bsky">Source Code</a>