Add Instagram metadata support in client and server
This commit is contained in:
@@ -25,6 +25,7 @@ function normalizeDetail(payload: any): EntryDetail {
|
||||
id: String(payload?.id ?? ''),
|
||||
title: payload?.title || payload?.meta?.title_en || String(payload?.id ?? 'Untitled'),
|
||||
meta: payload?.meta || {},
|
||||
ig_meta: payload?.ig_meta,
|
||||
items,
|
||||
quiz: Array.isArray(payload?.quiz) ? payload.quiz : [],
|
||||
ui_hints: payload?.ui_hints || {},
|
||||
|
||||
@@ -64,6 +64,15 @@ export interface EntryDetail {
|
||||
type?: string;
|
||||
title_en?: string;
|
||||
};
|
||||
ig_meta?: {
|
||||
username?: string;
|
||||
full_name?: string;
|
||||
profile_pic_url?: string;
|
||||
post_url?: string;
|
||||
profile_url?: string;
|
||||
post_date?: string;
|
||||
description?: string;
|
||||
};
|
||||
items: EntryItems;
|
||||
quiz: QuizQuestion[];
|
||||
ui_hints?: {
|
||||
|
||||
Reference in New Issue
Block a user