import{n as e,t}from"./utils-68HK_ToG.mjs";const n={path:`/home_latest/:routeParams?`,categories:[`social-media`],example:`/twitter/home_latest`,features:{requireConfig:[{name:`TWITTER_AUTH_TOKEN`,description:`Please see above for details.`}],requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`Home latest timeline`,maintainers:[`DIYgod`,`CaoMeiYouRen`],handler:r,radar:[{source:[`x.com/home`],target:`/home_latest`}]};async function r(n){let{count:r,include_rts:i,only_media:a}=t.parseRouteParams(n.req.param(`routeParams`)),o=r?{count:r}:{};await e.init();let s=await e.getHomeLatestTimeline(``,o);return i||(s=t.excludeRetweet(s)),a&&(s=t.keepOnlyMedia(s)),{title:`Twitter following timeline`,link:`https://x.com/home`,item:t.ProcessFeed(n,{data:s})}}export{n as route};