From 934d95a4ed5f8288d0459a6752a92d42d5a7c22f Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 23 Nov 2025 13:11:09 +0800 Subject: [PATCH] fix(route/1point3acres): handle optional tags in category assignment (#20547) --- lib/routes/1point3acres/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/1point3acres/utils.ts b/lib/routes/1point3acres/utils.ts index d55fd8c6e..c4b7638aa 100644 --- a/lib/routes/1point3acres/utils.ts +++ b/lib/routes/1point3acres/utils.ts @@ -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 () => {