oops
This commit is contained in:
parent
28d465bf01
commit
028d58e87b
2 changed files with 4 additions and 4 deletions
|
@ -184,9 +184,9 @@ function updateType($siteurl) {
|
|||
elseif( strpos( $siteurl, 'shaarli' ) !== FALSE ) {
|
||||
return array('type' => 'shaarli', 'name' => 'shaarli');
|
||||
}
|
||||
elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) {
|
||||
return array('type' => 'youtube', 'name' => 'youtube');
|
||||
}
|
||||
//elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) {
|
||||
// return array('type' => 'youtube', 'name' => 'youtube');
|
||||
//}
|
||||
else
|
||||
return array('type' => 'generic', 'name' => '');
|
||||
}
|
||||
|
|
|
@ -551,7 +551,7 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO
|
|||
$socialaccount = get_title_from_feed($rssurl);
|
||||
}
|
||||
elseif($socialinstance === 'youtube') {
|
||||
$sitetype = 'youtube';
|
||||
$sitetype = 'generic';
|
||||
$siteurl = 'https://www.youtube.com/user/'.$socialaccount;
|
||||
$rssurl = 'https://gdata.youtube.com/feeds/base/users/'.$socialaccount.'/uploads?alt=atom&orderby=published';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue