Diaspora: Accept new Salmon format
This commit is contained in:
parent
76d8a3213f
commit
aa88691bc1
3 changed files with 106 additions and 25 deletions
|
@ -174,6 +174,9 @@ class Probe {
|
|||
return array();
|
||||
|
||||
$host = $parts["host"];
|
||||
if (isset($parts["port"])) {
|
||||
$host .= ':'.$parts["port"];
|
||||
}
|
||||
|
||||
$path_parts = explode("/", trim($parts["path"], "/"));
|
||||
|
||||
|
@ -334,8 +337,10 @@ class Probe {
|
|||
|
||||
if (isset($parts["scheme"]) AND isset($parts["host"]) AND isset($parts["path"])) {
|
||||
|
||||
/// @todo: Ports?
|
||||
$host = $parts["host"];
|
||||
if (isset($parts["port"])) {
|
||||
$host .= ':'.$parts["port"];
|
||||
}
|
||||
|
||||
if ($host == 'twitter.com') {
|
||||
return array("network" => NETWORK_TWITTER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue