From 9cb29513b43c4ed36d5ef9b58bbae7bf26a96e7b Mon Sep 17 00:00:00 2001 From: 9k001 <63529476+9k001@users.noreply.github.com> Date: Thu, 26 Feb 2026 00:52:06 +0800 Subject: [PATCH] fix(route/zhihu): enable processImage for people/answers to fix lazy-loaded images (#18671) (#21153) --- lib/routes/zhihu/answers.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/routes/zhihu/answers.ts b/lib/routes/zhihu/answers.ts index dbf7d68a8..cf32c96c1 100644 --- a/lib/routes/zhihu/answers.ts +++ b/lib/routes/zhihu/answers.ts @@ -1,8 +1,7 @@ import type { Route } from '@/types'; import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; - -import { getSignedHeader, header } from './utils'; +import { getSignedHeader, header, processImage } from './utils'; export const route: Route = { path: '/people/answers/:id', @@ -53,10 +52,9 @@ async function handler(ctx) { const data = response.data.data; const items = data.map((item) => { const title = item.question.title; - // let description = processImage(detail.content); const url = `https://www.zhihu.com/question/${item.question.id}/answer/${item.id}`; const author = item.author.name; - const description = item.content; + const description = processImage(item.content); return { title,