Merge pull request #35 from fabrixxm/master

Use oembed if possible without the addon

Awesome!
This commit is contained in:
Friendika 2011-10-24 15:49:28 -07:00
commit ea9d3b06f6
13 changed files with 109 additions and 38 deletions

View file

@ -338,7 +338,6 @@ function item_post(&$a) {
$bookmark = 0;
if(preg_match_all("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism",$body,$match)) {
$bookmark = 1;
$body = preg_replace("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism",'[url=$1]$2[/url]',$body);
}