fix comment page uri

This commit is contained in:
isUnknown 2024-10-30 11:29:08 +01:00
parent a1fa535123
commit 0d25794b87
2 changed files with 3 additions and 2 deletions

View file

@ -27,8 +27,8 @@ class BaseComment {
$type = $data['type'] ?? 'comment';
$this->page = [
'uri' => (string) $page->uri(),
'title' => (string) $page->title(),
'uri' => (string) $page->parent()->uri(),
'title' => (string) $page->parent()->title(),
];
$this->file = [
'uuid' => (string) $file->uuid(),

View file

@ -139,6 +139,7 @@ const sortedNotifications = computed(() => {
const allNotifications = [
...Object.values(notifications.value.comments || {}),
...Object.values(notifications.value.content || {}),
...Object.values(notifications.value.meetings || {}),
];
const sortedNotifications = allNotifications.sort((a, b) => {