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:
2025-05-20 19:46:09 -06:00
parent a93c30c40f
commit 54a01f0f1f
20 changed files with 1018 additions and 1191 deletions
+5 -1
View File
@@ -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;