mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
Don't show local only notes to guest users, resolves #147
This commit is contained in:
parent
6fc8415b00
commit
875bea2bca
@ -19,7 +19,7 @@ export async function getNote(
|
|||||||
|
|
||||||
const note = await query.getOne();
|
const note = await query.getOne();
|
||||||
|
|
||||||
if (note == null) {
|
if (note == null || (me == null && note.localOnly)) {
|
||||||
throw new IdentifiableError(
|
throw new IdentifiableError(
|
||||||
"9725d0ce-ba28-4dde-95a7-2cbb2c15de24",
|
"9725d0ce-ba28-4dde-95a7-2cbb2c15de24",
|
||||||
"No such note.",
|
"No such note.",
|
||||||
|
Loading…
Reference in New Issue
Block a user