fix comment page uri
This commit is contained in:
parent
a1fa535123
commit
0d25794b87
2 changed files with 3 additions and 2 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue