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'; $type = $data['type'] ?? 'comment';
$this->page = [ $this->page = [
'uri' => (string) $page->uri(), 'uri' => (string) $page->parent()->uri(),
'title' => (string) $page->title(), 'title' => (string) $page->parent()->title(),
]; ];
$this->file = [ $this->file = [
'uuid' => (string) $file->uuid(), 'uuid' => (string) $file->uuid(),

View file

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