Skip to content

Commit

Permalink
tw_url_to_status_id handle mobile.twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
tantek committed Oct 31, 2020
1 parent ff854d6 commit 3148424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cassis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ function tw_url_to_status_id($u) {
// returns tweet status id string; 0 if not a tweet permalink.
if (!$u) return 0;
$u = explode("/", string($u)); // https:,,twitter.com,t,status,nnn
if ($u[2] != "twitter.com" ||
if (($u[2] != "twitter.com" && $u[2] != "mobile.twitter.com") ||
$u[4] != "status" ||
!ctype_digit($u[5])) {
return 0;
Expand Down

0 comments on commit 3148424

Please sign in to comment.