18 files changed
+547
-13
No files matched your search
@@ -97,6 +97,7 @@ export const actionParams = {
|
||||
get_qzone_profile: { target_uin: '10002' },
|
||||
get_qzone_public_capabilities: {},
|
||||
get_qzone_home_feeds: { target_uin: '10001', cursor: 'home-feed-cursor' },
|
||||
get_qzone_feed_detail: { tid: '1127000000f1536501000000' },
|
||||
get_qzone_share_ark: { feed: qzonePublicFeed },
|
||||
get_qzone_public_comments: { feed: qzonePublicFeed, cursor: 'comments-from-detail' },
|
||||
get_qzone_public_feed_detail: { feed: qzonePublicFeed },
|
||||
@@ -232,6 +233,7 @@ export type CoveredAction =
|
||||
| 'get_qzone_profile'
|
||||
| 'get_qzone_public_capabilities'
|
||||
| 'get_qzone_home_feeds'
|
||||
| 'get_qzone_feed_detail'
|
||||
| 'get_qzone_share_ark'
|
||||
| 'get_qzone_public_comments'
|
||||
| 'get_qzone_public_feed_detail'
|
||||
@@ -469,6 +471,13 @@ export const actionResults = {
|
||||
get_qzone_profile: { name: 'Space', description: 'Description' },
|
||||
get_qzone_public_capabilities: { public_qzone_entrance_switch: true, can_upvote: true },
|
||||
get_qzone_home_feeds: { feeds: [qzonePublicFeed], has_more: false, next_cursor: null },
|
||||
get_qzone_feed_detail: {
|
||||
feed: {
|
||||
cell_common: { domain_type: 1, union_id: { feed_id: '1127000000f1536501000000' } },
|
||||
cell_pic: { future_image_field: true },
|
||||
},
|
||||
attach_info: 'comments-from-detail',
|
||||
},
|
||||
get_qzone_share_ark: { ark: '{"app":"com.tencent.tuwen.lua"}', requires_confirmation: false, notice: null },
|
||||
get_qzone_public_comments: {
|
||||
cell_comment: { comments: [qzonePublicComment] },
|
||||
|
||||
@@ -164,6 +164,15 @@ export const invalidQzoneProfilePatch: ActionParams<'set_qzone_profile'> = {
|
||||
// @ts-expect-error profile fields accept string, number or boolean primitives
|
||||
description: [],
|
||||
};
|
||||
const feedDetail = await http.raw('get_qzone_feed_detail', actionParams.get_qzone_feed_detail);
|
||||
export const fullQzoneFeed: JsonObject = feedDetail.feed;
|
||||
export const feedDetailCursor: string | null = feedDetail.attach_info;
|
||||
export const feedDetailCard = await http.raw('get_qzone_share_ark', { feed: feedDetail.feed });
|
||||
// @ts-expect-error querying a feed requires a post ID
|
||||
http.raw('get_qzone_feed_detail', {});
|
||||
// @ts-expect-error the post ID is hexadecimal text, not an array
|
||||
http.raw('get_qzone_feed_detail', { tid: [] });
|
||||
|
||||
const publicPage = await http.raw('get_qzone_public_feeds', {});
|
||||
export const publicCells: JsonObject[] = publicPage.feeds;
|
||||
export const publicHasMore: boolean = publicPage.has_more;
|
||||
|
||||
Reference in new issue
Block a user