Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #58 from petaqui/patch-1
Browse files Browse the repository at this point in the history
Update images.php
  • Loading branch information
graulund committed Jul 20, 2013
2 parents 194a496 + 5433d5e commit fa74a5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/images.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public function enhanceTweet($tweet){
if($domain == "twitvid.com"){
$imgs[$link] = $http . "://images.twitvid.com/" . $imgid . ".jpg";
}
if($domain == "moby.to"){
$imgs[$link] = $http . "://moby.to/" . $imgid . ":square";
}
if($domain == "instagr.am" || $domain == "instagram.com"){
$html = (string)getURL($link);
preg_match('/<meta property="og:image" content="([^"]+)"\s*\/>/i', $html, $matches);
Expand Down Expand Up @@ -116,4 +119,4 @@ public function displayTweet($d, $tweet){
}
}

$o = new Extension_Images();
$o = new Extension_Images();

0 comments on commit fa74a5d

Please sign in to comment.