MCPcopy Create free account
hub / github.com/Treeki/BirdBridge / buildParams

Function buildParams

utils/apiUtil.ts:29–47  ·  view source on GitHub ↗
(isTweet: boolean)

Source from the content-addressed store, hash-verified

27export const IMAGE_1PX = new URL('/static/1px.png', CONFIG.root).toString();
28
29export 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
49export function injectPagingInfo(query: Record<string, any>, params: Record<string, any>) {
50 if (query.limit !== undefined)

Callers 2

main.tsFile · 0.90
plainFetchUserFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected