Bugfix: Locations without coordinates aren't good for Diaspora

2022.09-rc
Michael 2016-11-13 17:42:26 +00:00
rodzic 724f9c80e7
commit 26936755d9
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -2876,8 +2876,9 @@ class diaspora {
"created_at" => $created,
"provider_display_name" => $item["app"]);
if (count($location) == 0)
if (!isset($location["lat"]) OR !isset($location["lng"])) {
unset($message["location"]);
}
$type = "status_message";
}