diff --git a/lib/routes/kemono/index.ts b/lib/routes/kemono/index.ts index 50a593fde..7f307de79 100644 --- a/lib/routes/kemono/index.ts +++ b/lib/routes/kemono/index.ts @@ -97,7 +97,8 @@ async function handler(ctx) { const author = isPosts ? '' : await getAuthor(currentUrl, headers); title = isPosts ? 'Kemono Posts' : `Posts of ${author} from ${source} | Kemono`; image = isPosts ? `${rootUrl}/favicon.ico` : `https://img.kemono.su/icons/${source}/${id}`; - items = response.data + const responseData = isPosts ? response.data.posts : response.data; + items = responseData .filter((i) => i.content || i.attachments) .slice(0, limit) .map((i) => {