We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79c8adc commit 9cb2951Copy full SHA for 9cb2951
1 file changed
lib/routes/zhihu/answers.ts
@@ -1,8 +1,7 @@
1
import type { Route } from '@/types';
2
import got from '@/utils/got';
3
import { parseDate } from '@/utils/parse-date';
4
-
5
-import { getSignedHeader, header } from './utils';
+import { getSignedHeader, header, processImage } from './utils';
6
7
export const route: Route = {
8
path: '/people/answers/:id',
@@ -53,10 +52,9 @@ async function handler(ctx) {
53
52
const data = response.data.data;
54
const items = data.map((item) => {
55
const title = item.question.title;
56
- // let description = processImage(detail.content);
57
const url = `https://www.zhihu.com/question/${item.question.id}/answer/${item.id}`;
58
const author = item.author.name;
59
- const description = item.content;
+ const description = processImage(item.content);
60
61
return {
62
title,
0 commit comments