Merge pull request #2909 from annando/1611-diaspora-location
Bugfix: Locations without coordinates aren't good for Diaspora
This commit is contained in:
commit
fa7f0cac71
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue