import{t as e}from"./config-BYRrjYC5.mjs";import{t}from"./config-not-found-B9AOp828.mjs";import{t as n}from"./utils-BDdVYk8R.mjs";const r={path:`/account_id/:site/:account_id/statuses/:only_media?`,categories:[`social-media`],view:1,example:`/mastodon/account_id/mas.to/109300507275095341/statuses/false`,parameters:{site:"instance address, only domain, no `http://` or `https://` protocol header",account_id:"account ID, you can get it from `https://INSTANCE/api/v1/accounts/lookup?acct=USERNAME` api",only_media:{description:`whether only display media content, default to false, any value to true`,options:[{value:`true`,label:`true`},{value:`false`,label:`false`}],default:`false`}},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`User timeline (by account ID)`,maintainers:[`notofoe`,`pseudoyu`],handler:i};async function i(r){let i=r.req.param(`site`),a=r.req.param(`account_id`),o=r.req.param(`only_media`)===`true`?`true`:`false`;if(!e.feature.allow_user_supply_unsafe_domain&&!n.allowSiteList.includes(i))throw new t(`This RSS is disabled unless 'ALLOW_USER_SUPPLY_UNSAFE_DOMAIN' is set to 'true'.`);let{account_data:s,data:c}=await n.getAccountStatuses(i,a,o);return{title:`${s.display_name} (@${s.acct})`,link:s.url,description:s.note,item:n.parseStatuses(c),allowEmpty:!0}}export{r as route};