feat(qzone): 添加空友爱看推荐与互动接口 (#2125)

* feat(qzone): 添加空友爱看推荐与互动接口

* fix(qzone): accept nullable public feed identities and preserve error codes

* docs(qzone): remove redundant public API readme
This commit is contained in:
Qiao authored and GitHub committed 2026-10-27 10:08:36 +08:00
1 parent 3420f0b76d
commit ba0a53dd37
28 files changed
+1955 -1

No files matched your search

@@ -0,0 +1,12 @@
/** Decode individual GET / form values before applying the public Qzone action contract. */
export function decodeQzonePublicHttpParameters (parameters: unknown): Record<string, unknown> {
if (parameters === null || typeof parameters !== 'object' || Array.isArray(parameters)) return {};
return Object.fromEntries(Object.entries(parameters).map(([key, value]) => {
if (typeof value !== 'string') return [key, value];
try {
return [key, JSON.parse(value) as unknown];
} catch {
return [key, value];
}
}));
}