import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./auth-Dw63C8dC.mjs";const r={path:`/xhu/people/answers/:hexId`,categories:[`social-media`],example:`/zhihu/xhu/people/answers/246e6cf44e94cefbf4b959cb5042bc91`,parameters:{hexId:`用户的 16 进制 id，获取方式同 [xhu - 用户动态](#zhi-hu-xhu-yong-hu-dong-tai)`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.zhihu.com/people/:id/answers`],target:`/people/answers/:id`}],name:`xhu - 用户回答`,maintainers:[`JimenezLi`],handler:i};async function i(r){let i=await n.getCookie(),a=r.req.param(`hexId`),o=`https://www.zhihu.com/people/${a}/answers`,s=(await t({method:`get`,url:`https://api.zhihuvvv.workers.dev/people/${a}/answers?limit=20&offset=0`,headers:{Referer:`https://api.zhihuvvv.workers.dev`,Cookie:i}})).data.data;return{title:`${s[0].author.name}的知乎回答`,link:o,item:s.map(t=>({title:t.question.title,description:t.excerpt,pubDate:e(t.created_time*1e3),link:`https://www.zhihu.com/question/${t.question.id}/answer/${t.id}`}))}}export{r as route};