refactor: update Roblox integration to fetch and label friend count instead of followers
This commit is contained in:
@@ -74,7 +74,7 @@ export async function getFollowerCounts(): Promise<FetchResult> {
|
||||
|
||||
const followerLabels: Record<keyof FollowerCounts, string> = {
|
||||
youtube: "ผู้ติดตาม",
|
||||
roblox: "ผู้ติดตาม",
|
||||
roblox: "เพื่อน",
|
||||
discord: "สมาชิก",
|
||||
tiktok: "ผู้ติดตาม",
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user