Browse Source

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

Bugfix: Locations without coordinates aren't good for Diaspora
pull/2906/head^2
rabuzarus 6 years ago committed by GitHub
parent
commit
fa7f0cac71
  1. 4
      include/diaspora.php

4
include/diaspora.php

@ -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…
Cancel
Save