fix(route/1point3acres): handle optional tags in category assignment (#20547)

This commit is contained in:
Tony 2025-11-23 13:11:09 +08:00 committed by GitHub
parent 98014554ca
commit 934d95a4ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ const ProcessThreads = async (tryGet, apiUrl, order) => {
link: `${rootUrl}/thread/${item.tid}`,
description: item.summary,
pubDate: parseDate((order === '' ? item.lastpost : item.dateline) * 1000),
category: [item.forum_name, ...item.tags.map((t) => t.displayname)],
category: [item.forum_name, ...(item.tags ? item.tags.map((t) => t.displayname) : [])],
};
return tryGet(result.link, async () => {