full update

This commit is contained in:
payacom
2026-07-18 14:29:05 +03:30
parent 17f334d0f1
commit af5b27b610
239 changed files with 10283 additions and 3041 deletions

View File

@@ -11,7 +11,7 @@ export async function fetchPosts(
userLevel?: string;
rateFilter?: string;
_id?: string;
type?: string;
type?: "image" | "video";
exploreFilter?: string;
subExpertise?: string;
lat?: string;
@@ -19,6 +19,17 @@ export async function fetchPosts(
feedMode?: "grid" | "reels";
seedPostId?: string;
sort?: "latest";
reelsTab?: "for_you" | "following" | "saved";
heightMin?: string;
heightMax?: string;
weightMin?: string;
weightMax?: string;
sizeMin?: string;
sizeMax?: string;
hair_color?: string;
eye_color?: string;
q?: string;
hashtag?: string;
},
token: string
) {
@@ -53,5 +64,16 @@ export async function fetchPosts(
throw new Error(`Network response was not ok: ${response.status}`);
}
return response.json();
return response.json() as Promise<{
posts: unknown[];
totalPages?: number;
totalItems?: number;
feedMeta?: {
isColdStart?: boolean;
emptyFollowing?: boolean;
emptySaved?: boolean;
requiresAuth?: boolean;
suggestedUsers?: unknown[];
};
}>;
}