import{t as e}from"./ofetch-Dl6dVB_5.mjs";const t={path:`/journal-comments/:id`,name:`Journal Comments`,url:`furaffinity.net`,categories:[`social-media`],example:`/furaffinity/journal-comments/10925112`,maintainers:[`TigerCubDen`,`SkyNetX007`],parameters:{id:`Journal ID`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1,nsfw:!0},radar:[{source:[`furaffinity.net/journal/:id`],target:`/journal-comments/:id`}],handler:n};async function n(t){let{id:n}=t.req.param(),r=`https://faexport.spangle.org.uk/journal/${n}.json`,i=`https://faexport.spangle.org.uk/journal/${n}/comments.json`,a=await e(r,{method:`GET`,headers:{Referer:`https://faexport.spangle.org.uk/`}}),o=(await e(i,{method:`GET`,headers:{Referer:`https://faexport.spangle.org.uk/`}})).map(e=>({title:e.text,link:`https://www.furaffinity.net/journal/${n}`,guid:e.id,description:`<img src="${e.avatar}"> <br> ${e.name}: ${e.text}`,pubDate:new Date(e.posted_at).toUTCString(),author:e.name}));return{allowEmpty:!0,title:`${a.title} - ${a.name} | Journal Comments`,link:`https://www.furaffinity.net/journal/${n}`,description:`Fur Affinity | ${a.title} by ${a.name} - Journal Comments`,item:o}}export{t as route};