tweaking and adding homepage with trending and so on
This commit is contained in:
@@ -42,6 +42,12 @@ router.post('/', async (req, res) => {
|
||||
username: username,
|
||||
password: hashedPassword,
|
||||
creation: currentDate.toLocaleDateString('en-gb'),
|
||||
likedPosts: [],
|
||||
savedPosts: [],
|
||||
posts: [],
|
||||
comments: [],
|
||||
activity: [],
|
||||
activityPoints: 0
|
||||
}
|
||||
|
||||
const newUser = await db.create('users', user);
|
||||
|
||||
Reference in New Issue
Block a user