import{n as e,t}from"./utils-68HK_ToG.mjs";const n={path:`/likes/:id/:routeParams?`,categories:[`social-media`],example:`/twitter/likes/DIYgod`,parameters:{id:`username`,routeParams:`extra parameters, see the table above`},features:{requireConfig:[{name:`TWITTER_AUTH_TOKEN`,description:`Please see above for details.`}],requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`User likes`,maintainers:[`xyqfer`],handler:r};async function r(n){let r=n.req.param(`id`),{count:i,include_rts:a,only_media:o}=t.parseRouteParams(n.req.param(`routeParams`)),s=i?{count:i}:{};await e.init();let c=await e.getUserLikes(r,s);return a||(c=t.excludeRetweet(c)),o&&(c=t.keepOnlyMedia(c)),{title:`Twitter Likes - ${r}`,link:`https://x.com/${r}/likes`,item:t.ProcessFeed(n,{data:c})}}export{n as route};