Unfollow tool for Bluesky

rename signal, remove warning

Changed files
+10 -10
src
+10 -10
src/App.tsx
···
import styles from "./App.module.css";
import { BskyAgent } from "@atproto/api";
-
const [unfollow, setUnfollow] = createSignal("");
+
const [unfollowNotice, setUnfollowNotice] = createSignal("");
const fetchFollows = async (agent: any) => {
const PAGE_LIMIT = 100;
···
userPassword: any,
serviceURL: any,
) => {
-
setUnfollow("");
+
setUnfollowNotice("");
const agent = new BskyAgent({
service: serviceURL,
···
"Unfollowed blocked account: " + followRecords[i + n].value.subject,
" (" + res.data.profiles[i].handle + ")",
);
-
setUnfollow(
-
unfollow() +
+
setUnfollowNotice(
+
unfollowNotice() +
"Unfollowed blocked account: " +
followRecords[i + n].value.subject +
" (" +
···
console.log(
"Unfollowed deleted account: " + followRecords[i + n].value.subject,
);
-
setUnfollow(
-
unfollow() +
+
setUnfollowNotice(
+
unfollowNotice() +
"Unfollowed deleted account: " +
followRecords[i + n].value.subject +
"<br>",
···
}
}
-
setUnfollow(unfollow() + "Done");
+
setUnfollowNotice(unfollowNotice() + "Done");
};
const UnfollowForm: Component = () => {
···
Unfollow
</button>
</form>
-
<div innerHTML={unfollow()}></div>
+
<div innerHTML={unfollowNotice()}></div>
</div>
);
};
···
<h1>cleanfollow-bsky</h1>
<div class={styles.Warning}>
<p>
-
warning: unfollows all deleted accounts and accounts you follow that
-
have blocked you
+
unfollows all deleted accounts and accounts you follow that have
+
blocked you
</p>
<p>USE AT YOUR OWN RISK</p>
<a href="https://github.com/notjuliet/cleanfollow-bsky">Source Code</a>