]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Static reason for login failure to prevent bruteforce
[friendica.git] / src / Protocol / Diaspora.php
index e7edcdc490a9363d693d502bec5d29df73006af1..551971e504f2e74b090a3226f5cd5f64e5aa5dc0 100644 (file)
@@ -1598,7 +1598,7 @@ class Diaspora
                        unset($parts['path']);
                        $host_url = Network::unparseURL($parts);
 
-                       return $host_url . '/object/' . $guid;
+                       return $host_url . '/objects/' . $guid;
                }
 
                return "";
@@ -3200,7 +3200,7 @@ class Diaspora
                $author = self::myHandle($owner);
 
                $message = ["author" => $author,
-                               "guid" => System::createGUID(32),
+                               "guid" => System::createUUID(),
                                "parent_type" => "Post",
                                "parent_guid" => $item["guid"]];