import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./description-B5mkLnWc.mjs";const n=n=>{let r=n.user.nickname,i=n.post.subject,a=`https://www.miyoushe.com/ys/article/${n.post.post_id}`,o=n.post.content||``;try{o=JSON.parse(n.post.content).describe}catch(e){if(!(e instanceof SyntaxError))throw e}return{author:r,title:i,link:a,description:t(o||``,[...new Set([n.post.cover,...n.post.images])].filter(Boolean)),pubDate:e(n.post.created_at*1e3),upvotes:n.stat.like_num,comments:n.stat.reply_num}};export{n as t};