Merge pull request #2909 from annando/1611-diaspora-location

Bugfix: Locations without coordinates aren't good for Diaspora
pull/2906/head^2
rabuzarus 2016-11-13 19:50:51 +01:00 zatwierdzone przez GitHub
commit fa7f0cac71
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -2876,8 +2876,10 @@ class diaspora {
"created_at" => $created,
"provider_display_name" => $item["app"]);
if (count($location) == 0)
// Diaspora rejects messages when they contain a location without "lat" or "lng"
if (!isset($location["lat"]) OR !isset($location["lng"])) {
unset($message["location"]);
}
$type = "status_message";
}