Diaspora now uses a 32 digit guid.
This commit is contained in:
+1
-1
@@ -1788,7 +1788,7 @@ function return_bytes ($size_str) {
|
||||
function generate_user_guid() {
|
||||
$found = true;
|
||||
do {
|
||||
$guid = random_string(16);
|
||||
$guid = get_guid(32);
|
||||
$x = q("SELECT `uid` FROM `user` WHERE `guid` = '%s' LIMIT 1",
|
||||
dbesc($guid)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user