Bugfix: Locations without coordinates aren't good for Diaspora
This commit is contained in:
parent
724f9c80e7
commit
26936755d9
|
@ -2876,8 +2876,9 @@ class diaspora {
|
||||||
"created_at" => $created,
|
"created_at" => $created,
|
||||||
"provider_display_name" => $item["app"]);
|
"provider_display_name" => $item["app"]);
|
||||||
|
|
||||||
if (count($location) == 0)
|
if (!isset($location["lat"]) OR !isset($location["lng"])) {
|
||||||
unset($message["location"]);
|
unset($message["location"]);
|
||||||
|
}
|
||||||
|
|
||||||
$type = "status_message";
|
$type = "status_message";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue