From a13e3f50e771928191af55e9270815c9750d31a2 Mon Sep 17 00:00:00 2001 From: Kev Date: Tue, 10 Dec 2024 22:33:51 +0100 Subject: [PATCH] Revert unintended avatar stock checker This reverts a feature accidentally introduced by #296 where every user's avatar in the queue would be checked if it was a stock avatar. --- web/admin/pages/index.vue | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/web/admin/pages/index.vue b/web/admin/pages/index.vue index 331ff947..08144f1f 100644 --- a/web/admin/pages/index.vue +++ b/web/admin/pages/index.vue @@ -25,32 +25,18 @@ const actorProfilesMap = computed(() => { return map; }); -const avatarStockMap = ref(new Map()); - -watch(actorProfiles, async () => { - for (const profile of actorProfiles.value) { - const { isStockAvatar } = await fetch( - `https://bsky-cdn.codingpa.ws/avatar/${profile.did}/info.json` - ).then((r) => r.json()); - avatarStockMap.value.set(profile.did, isStockAvatar); - } -}); - const queues = computed(() => ({ All: actors.value, "Probably furry": actors.value.filter((actor) => { const profile = didToProfile(actor.did); - return isProbablyFurry(profile) && !avatarStockMap.value.get(actor.did); + return isProbablyFurry(profile); }), "Empty profiles": actors.value.filter((actor) => { const profile = didToProfile(actor.did); if (!profile) return false; - return ( - (!profile.displayName && !profile.description && !profile.postsCount) || - avatarStockMap.value.get(actor.did) - ); + return !profile.displayName && !profile.description && !profile.postsCount; }), "Held back": heldBack.value, }));