Unfollow tool for Bluesky

differentiate deactivated accounts from deleted ones

Changed files
+16 -12
src
+1 -3
README.md
···
## cleanfollow-bsky
-
lil webapp to automatically unfollow deleted/deactivated accounts and accounts that have blocked you before you could unfollow
-
-
WARNING: i havent found a way yet to differentiate deactivated accounts from deleted accounts, they will both be unfollowed
···
## cleanfollow-bsky
+
lil web app to unfollow deleted/deactivated/blocked by accounts
+15 -9
src/App.tsx
···
unfollowURIsIndexes.push(i + n);
setUnfollowNotice(
unfollowNotice() +
-
"Found blocked account: " +
followRecords[i + n].value.subject +
" (" +
res.data.profiles[i].handle +
···
}
for (let i = 0; i < res.data.profiles.length; i++) {
if (!tmpDID.includes(followsDID[i + n])) {
-
unfollowURIsIndexes.push(i + n);
setUnfollowNotice(
-
unfollowNotice() +
-
"Found deleted account: " +
-
followRecords[i + n].value.subject +
-
"<br>",
);
}
}
}
···
<div class={styles.App}>
<h1>cleanfollow-bsky</h1>
<div class={styles.Warning}>
-
<p>
-
Unfollows all deleted, deactivated, and blocked accounts you follow
-
</p>
<p>USE AT YOUR OWN RISK</p>
<a href="https://github.com/notjuliet/cleanfollow-bsky">Source Code</a>
</div>
···
unfollowURIsIndexes.push(i + n);
setUnfollowNotice(
unfollowNotice() +
+
"Found account you are blocked by: " +
followRecords[i + n].value.subject +
" (" +
res.data.profiles[i].handle +
···
}
for (let i = 0; i < res.data.profiles.length; i++) {
if (!tmpDID.includes(followsDID[i + n])) {
+
try {
+
await agent.getProfile({ actor: followsDID[i + n] });
+
} catch (e: any) {
+
if (e.message.includes("not found")) {
+
setUnfollowNotice(unfollowNotice() + "Found deleted account: ");
+
} else if (e.message.includes(" deactivated")) {
+
setUnfollowNotice(
+
unfollowNotice() + "Found deactivated account: ",
+
);
+
}
+
}
setUnfollowNotice(
+
unfollowNotice() + followRecords[i + n].value.subject + "<br>",
);
+
unfollowURIsIndexes.push(i + n);
}
}
}
···
<div class={styles.App}>
<h1>cleanfollow-bsky</h1>
<div class={styles.Warning}>
+
<p>Unfollows all deleted, deactivated, and blocked by accounts</p>
<p>USE AT YOUR OWN RISK</p>
<a href="https://github.com/notjuliet/cleanfollow-bsky">Source Code</a>
</div>