Skip to content

Commit b18f792

Browse files
authored
fix(route/apple): add guid to items (#19760)
* fix: add guid to items * fix: reduce the number of feed items * Revert "fix: reduce the number of feed items"
1 parent b30ad64 commit b18f792

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/routes/apple/design.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Route } from '@/types';
22
import { parseDate } from '@/utils/parse-date';
33
import ofetch from '@/utils/ofetch';
4+
import md5 from '@/utils/md5';
45
import { load } from 'cheerio';
56

67
export const route: Route = {
@@ -37,6 +38,7 @@ async function handler() {
3738

3839
return {
3940
description,
41+
guid: md5(`${title}${description}${date}`),
4042
link,
4143
pubDate: parseDate(date),
4244
title,

0 commit comments

Comments
 (0)