mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
enhance(client): mobile twitter url can be used as widget (#9057)
This commit is contained in:
parent
a824e37c5c
commit
926139c232
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ let tweetHeight = $ref(150);
|
|||
|
||||
const requestUrl = new URL(props.url);
|
||||
|
||||
if (requestUrl.hostname === 'twitter.com') {
|
||||
if (requestUrl.hostname === 'twitter.com' || requestUrl.hostname === 'mobile.twitter.com') {
|
||||
const m = requestUrl.pathname.match(/^\/.+\/status(?:es)?\/(\d+)/);
|
||||
if (m) tweetId = m[1];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue