import{t as e}from"./got-BBDj7u1e.mjs";const t={path:`/community/user/:uid`,categories:[`bbs`],example:`/miui/community/user/1200057564`,parameters:{uid:"小米用户 UID，可于网页版用户主页链接中 `uid` 项获取"},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`web.vip.miui.com/page/info/mio/mio/homePage`],target:(e,t)=>`/miui/community/user/${new URL(t).searchParams.get(`uid`)}`}],name:`小米社区用户发帖`,maintainers:[`abc1763613206`],handler:n};async function n(t){let n=t.req.param(`uid`),r=`https://api.vip.miui.com/api/community/user/announce/list?uid=${n}&limit=10`,i=`https://web.vip.miui.com/page/info/mio/mio/homePage?uid=${n}`,{data:a}=await e({method:`get`,url:r,headers:{Referer:i}});if(a.code===200){let e=``,t=a.entity.records.map(t=>(e=t.author.name,{title:t.title||`${e} 的动态`,description:t.textContent,pubDate:new Date(t.createTime).toUTCString(),author:t.author.name,link:`https://web.vip.miui.com/page/info/mio/mio/detail?postId=${t.id}`,image:t.pic||t.cover||``}));return{title:`小米社区 - ${e} 的发帖`,link:i,description:`${e} 的发帖`,item:t,language:`zh-cn`}}else throw Error(a.message)}export{t as route};