admin notes support
missing role tag on notes but works otherwise
This commit is contained in:
@@ -10,7 +10,7 @@ This is where you will be preparing your machine to run openplace.
|
||||
1. install brew, node and git
|
||||
2. run `git clone --recurse-submodules https://github.com/openplaceteam/openplace`
|
||||
3. cd into the openplace directory
|
||||
4. run ``npm i && brew install mariadb caddy``
|
||||
4. run ``npm i && brew install mariadb caddy nss``
|
||||
5. brew will then spit out a command to inform you on how to start it. if it doesn't, run `brew services start mariadb && brew services start caddy`
|
||||
#### Configuring and building the database
|
||||
1. run `sudo mysql_secure_installation`
|
||||
|
||||
+2
-2
@@ -105,11 +105,11 @@ export default function (app: App) {
|
||||
.json({
|
||||
notes: notes.map(note => ({
|
||||
id: note.id,
|
||||
admin: {
|
||||
author: {
|
||||
id: note.user.id,
|
||||
name: note.user.name
|
||||
},
|
||||
content: note.content,
|
||||
note: note.content,
|
||||
createdAt: note.createdAt
|
||||
}))
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user