(isTweet: boolean)
| 27 | export const IMAGE_1PX = new URL('/static/1px.png', CONFIG.root).toString(); |
| 28 | |
| 29 | export function buildParams(isTweet: boolean): Record<string, any> { |
| 30 | const params: Record<string, any> = { |
| 31 | include_cards: '1', |
| 32 | cards_platform: 'iPhone-13', |
| 33 | include_entities: '1', |
| 34 | include_user_entities: '1', |
| 35 | include_ext_trusted_friends_metadata: 'true', |
| 36 | include_ext_verified_type: 'true', |
| 37 | include_ext_is_blue_verified: 'true', |
| 38 | include_ext_vibe: 'true', |
| 39 | include_ext_alt_text: 'true', |
| 40 | include_composer_source: 'true', |
| 41 | include_quote_count: '1', |
| 42 | include_reply_count: '1', |
| 43 | tweet_mode: 'extended' |
| 44 | }; |
| 45 | |
| 46 | return params; |
| 47 | } |
| 48 | |
| 49 | export function injectPagingInfo(query: Record<string, any>, params: Record<string, any>) { |
| 50 | if (query.limit !== undefined) |
no outgoing calls
no test coverage detected