mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 04:54:32 +00:00
also delete AP logs for cascading notes
This commit is contained in:
parent
7cb7ed6fc9
commit
b22b5577b4
1 changed files with 5 additions and 2 deletions
|
@ -165,8 +165,11 @@ export class NoteDeleteService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (note.uri) {
|
const deletedUris = [note, ...cascadingNotes]
|
||||||
this.apLogService.deleteObjectLogs(note.uri)
|
.map(n => n.uri)
|
||||||
|
.filter((u): u is string => u != null);
|
||||||
|
if (deletedUris.length > 0) {
|
||||||
|
this.apLogService.deleteObjectLogs(deletedUris)
|
||||||
.catch(err => this.logger.error(err, `Failed to delete AP logs for note '${note.uri}'`));
|
.catch(err => this.logger.error(err, `Failed to delete AP logs for note '${note.uri}'`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue