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

Bugfix: Locations without coordinates aren't good for Diaspora
This commit is contained in:
rabuzarus 2016-11-13 19:50:51 +01:00 committed by GitHub
commit fa7f0cac71

View File

@ -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";
}