fix(threads/utils): update URLs to use the correct domain for Threads
This commit is contained in:
parent
6e689c4e0b
commit
b7955d0d6e
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue