import{a as e,n as t,r as n,t as r}from"./utils-CCi83s0r.mjs";const i={path:`/discovery`,name:`発見`,categories:[`social-media`],example:`/mixi2/discovery`,features:{supportRadar:!0,requireConfig:r},radar:[{source:[`mixi.social/home/discovery`],target:`/discovery`,title:`発見`}],view:1,handler:async r=>{let i=Number.parseInt(r.req.query(`limit`)??`20`,10),a=n(),o=await a.getRecommendedTimeline({limit:i}),s=await a.getPersonas({personaIds:o?.posts?.map(e=>e.personaId)??[]});return{title:`発見`,link:`https://mixi.social/home/discovery`,image:`https://mixi.social/_next/static/media/image_logo.8bb36f11.svg`,item:o?.posts?.filter(e).map(e=>({title:`@${s.personas.find(t=>t.personaId===e.personaId)?.name}`,...t(e,s.personas)}))??[]}},maintainers:[`KarasuShin`]};export{i as route};