refactor: update Roblox integration to fetch and label friend count instead of followers

This commit is contained in:
2026-06-30 23:01:47 +07:00 Unverified
parent 38f9ebd4cf
commit 83834b7fc9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ export async function getFollowerCounts(): Promise<FetchResult> {
const followerLabels: Record<keyof FollowerCounts, string> = {
youtube: "ผู้ติดตาม",
roblox: "ผู้ติดตาม",
roblox: "เพื่อน",
discord: "สมาชิก",
tiktok: "ผู้ติดตาม",
};
+1 -1
View File
@@ -4,7 +4,7 @@ export async function getRobloxFollowerCount(): Promise<number | null> {
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;