Merge pull request #907 from annando/master
oembed: There seems to be some bug with ombed (maybe passing a non working url)
This commit is contained in:
commit
8d47965b3a
|
@ -184,6 +184,8 @@ CREATE TABLE IF NOT EXISTS `contact` (
|
||||||
`profile-id` int(11) NOT NULL DEFAULT '0' COMMENT 'which profile to display - 0 is public default',
|
`profile-id` int(11) NOT NULL DEFAULT '0' COMMENT 'which profile to display - 0 is public default',
|
||||||
`bdyear` char(4) NOT NULL COMMENT 'birthday notify flag',
|
`bdyear` char(4) NOT NULL COMMENT 'birthday notify flag',
|
||||||
`bd` date NOT NULL,
|
`bd` date NOT NULL,
|
||||||
|
`notify_new_posts` TINYINT(1) NOT NULL DEFAULT '0',
|
||||||
|
`fetch_further_information` TINYINT(1) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `uid` (`uid`),
|
KEY `uid` (`uid`),
|
||||||
KEY `self` (`self`),
|
KEY `self` (`self`),
|
||||||
|
|
|
@ -62,6 +62,10 @@ function oembed_fetch_url($embedurl){
|
||||||
}
|
}
|
||||||
|
|
||||||
$j = json_decode($txt);
|
$j = json_decode($txt);
|
||||||
|
|
||||||
|
if (!is_object($j))
|
||||||
|
return false;
|
||||||
|
|
||||||
$j->embedurl = $embedurl;
|
$j->embedurl = $embedurl;
|
||||||
return $j;
|
return $j;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue