]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Locations without coordinates aren't good for Diaspora
authorMichael <heluecht@pirati.ca>
Sun, 13 Nov 2016 17:42:26 +0000 (17:42 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 13 Nov 2016 17:42:26 +0000 (17:42 +0000)
include/diaspora.php

index db6844f44d609476b984b673d3c591514d338571..9e3710e2d07026b243acbc9b4f0703fb01f0bf82 100644 (file)
@@ -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";
                }