@@ -44,7 +44,7 @@ const viewFeeds = async (opts: FeedOptions) => {
4444}
4545
4646async function renderPost (
47- p : JikePostWithDetail | ( { actionTime : string } & Entity . PersonalUpdate )
47+ p : JikePostWithDetail | ( { actionTime : string } & Entity . PersonalUpdate ) ,
4848) {
4949 const texts : string [ ] = [ ]
5050 if ( p . type === 'PERSONAL_UPDATE' ) {
@@ -56,12 +56,12 @@ async function renderPost(
5656 // @ts -expect-error
5757 ( await displayImage ( p . live . picture . picUrl ) ) . result ,
5858 // @ts -expect-error
59- p . live . title
59+ p . live . title ,
6060 )
6161 break
6262 case 'USER_FOLLOW' :
6363 texts . push (
64- `${ displayUsers ( p . users ) } 关注了 ${ displayUsers ( p . targetUsers ) } `
64+ `${ displayUsers ( p . users ) } 关注了 ${ displayUsers ( p . targetUsers ) } ` ,
6565 )
6666 break
6767 default :
@@ -71,30 +71,30 @@ async function renderPost(
7171 const detail = p . detail as Entity . OriginalPost
7272 const link = isMacOS
7373 ? ui . colors . gray (
74- ui . colors . underline ( `jike://page.jk/originalPost/${ p . id } ` )
74+ ui . colors . underline ( `jike://page.jk/originalPost/${ p . id } ` ) ,
7575 )
7676 : ''
7777 texts . push (
7878 ( await displayImage ( detail . user . avatarImage . thumbnailUrl , 3 ) ) . result ,
7979 `${ displayUser ( detail . user ) } ${
8080 detail . topic ? ` [${ detail . topic . content } ]` : ''
8181 } : ${ link } `,
82- detail . content
82+ detail . content ,
8383 )
8484 if ( detail . pictures && detail . pictures . length > 0 ) {
8585 const images = await Promise . all (
8686 detail . pictures . map ( ( p ) =>
87- displayImage ( p . middlePicUrl ) . then ( ( { result } ) => `${ result } \n` )
88- )
87+ displayImage ( p . middlePicUrl ) . then ( ( { result } ) => `${ result } \n` ) ,
88+ ) ,
8989 )
9090 texts . push ( ...images )
9191 }
9292 if ( detail . linkInfo ) {
9393 texts . push (
9494 ( await displayImage ( detail . linkInfo . pictureUrl ) ) . result ,
9595 `分享链接 [${ detail . linkInfo . title } ](${ ui . colors . blue (
96- ui . colors . underline ( detail . linkInfo . linkUrl )
97- ) } )`
96+ ui . colors . underline ( detail . linkInfo . linkUrl ) ,
97+ ) } )`,
9898 )
9999 }
100100 } else {
0 commit comments