fix(threads/utils): update URLs to use the correct domain for Threads

This commit is contained in:
DIYgod 2025-08-15 19:14:29 +08:00
parent 6e689c4e0b
commit b7955d0d6e
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ import ofetch from '@/utils/ofetch';
import { JSDOM } from 'jsdom';
import { JSONPath } from 'jsonpath-plus';
const profileUrl = (user: string) => `https://www.threads.net/@${user}`;
const threadUrl = (code: string) => `https://www.threads.net/t/${code}`;
const profileUrl = (user: string) => `https://www.threads.com/@${user}`;
const threadUrl = (code: string) => `https://www.threads.com/t/${code}`;
const USER_AGENT = 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1';