From 83834b7fc9d4f044fae49db84abca2d29e3f3ab4 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Tue, 30 Jun 2026 23:01:47 +0700 Subject: [PATCH] refactor: update Roblox integration to fetch and label friend count instead of followers --- lib/followers/index.ts | 2 +- lib/followers/roblox.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/followers/index.ts b/lib/followers/index.ts index 1c43921..c4eae5c 100644 --- a/lib/followers/index.ts +++ b/lib/followers/index.ts @@ -74,7 +74,7 @@ export async function getFollowerCounts(): Promise { const followerLabels: Record = { youtube: "ผู้ติดตาม", - roblox: "ผู้ติดตาม", + roblox: "เพื่อน", discord: "สมาชิก", tiktok: "ผู้ติดตาม", }; diff --git a/lib/followers/roblox.ts b/lib/followers/roblox.ts index f17fed8..14ba3c0 100644 --- a/lib/followers/roblox.ts +++ b/lib/followers/roblox.ts @@ -4,7 +4,7 @@ export async function getRobloxFollowerCount(): Promise { try { const res = await fetch( - `https://friends.roblox.com/v1/users/${encodeURIComponent(userId)}/followers/count`, + `https://friends.roblox.com/v1/users/${encodeURIComponent(userId)}/friends/count`, { next: { revalidate: 3600 }, signal: AbortSignal.timeout(5000) } ); if (!res.ok) return null;