mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04: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
|
await note.aliases
|
||||||
).map((alias) => this.aliasService.toAliasDto(alias, note)),
|
).map((alias) => this.aliasService.toAliasDto(alias, note)),
|
||||||
),
|
),
|
||||||
primaryAddress: (await getPrimaryAlias(note)) ?? note.id,
|
primaryAddress: (await getPrimaryAlias(note)) ?? note.publicId,
|
||||||
title: note.title ?? '',
|
title: note.title ?? '',
|
||||||
createdAt: note.createdAt,
|
createdAt: note.createdAt,
|
||||||
description: note.description ?? '',
|
description: note.description ?? '',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue