still some bugs and auth issues to iron out. need to implement a new action button/bar, the card for moments in a space, creating new moments and essays, dynamically refreshing the spaces view when a new post is created.
This commit is contained in:
+5
-1
@@ -11,7 +11,7 @@ if (!empty($_FILES['upload']))
|
||||
*/
|
||||
function randomId(int $mode)
|
||||
{
|
||||
$id = rand(1000, 999999999999);
|
||||
$id = rand(10000000, 999999999);
|
||||
switch ($mode) {
|
||||
case 0:
|
||||
if (User::exists($id))
|
||||
@@ -19,6 +19,10 @@ function randomId(int $mode)
|
||||
else
|
||||
return $id;
|
||||
case 1:
|
||||
if (Post::exists($id))
|
||||
return randomId($mode);
|
||||
else
|
||||
return $id;
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user