mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
fix(notes): primaryAddress reveals internal UUID
The primaryAddress field of a note contained the internal UUID of the note when no primary alias was defined instead of the public note id. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
3cff7f861a
commit
ef0fdac18c
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ export class NotesService {
|
|||
await note.aliases
|
||||
).map((alias) => this.aliasService.toAliasDto(alias, note)),
|
||||
),
|
||||
primaryAddress: (await getPrimaryAlias(note)) ?? note.id,
|
||||
primaryAddress: (await getPrimaryAlias(note)) ?? note.publicId,
|
||||
title: note.title ?? '',
|
||||
createdAt: note.createdAt,
|
||||
description: note.description ?? '',
|
||||
|
|
Loading…
Reference in a new issue