mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Don't show local only notes to guest users, resolves #147
This commit is contained in:
parent
6fc8415b00
commit
875bea2bca
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export async function getNote(
|
|||
|
||||
const note = await query.getOne();
|
||||
|
||||
if (note == null) {
|
||||
if (note == null || (me == null && note.localOnly)) {
|
||||
throw new IdentifiableError(
|
||||
"9725d0ce-ba28-4dde-95a7-2cbb2c15de24",
|
||||
"No such note.",
|
||||
|
|
Loading…
Reference in a new issue