From 3ffb60f8b4b30a4e6a439e96401d27b63760a5b0 Mon Sep 17 00:00:00 2001 From: Toby Kohlhagen Date: Wed, 1 Oct 2025 17:00:53 +1000 Subject: [PATCH] admin notes support missing role tag on notes but works otherwise --- README.md | 2 +- src/routes/admin.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a21f3e9..745f07e 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/src/routes/admin.ts b/src/routes/admin.ts index 14164f7..f60938a 100644 --- a/src/routes/admin.ts +++ b/src/routes/admin.ts @@ -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 })) });