Merge pull request #6505 from Ocelot-Social-Community/fix-create-post-notifications

fix(webapp): fix create post & notifications
This commit is contained in:
Ulf Gebhardt 2023-07-07 08:41:29 +02:00 committed by GitHub
commit 8da1b71866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,7 @@ export default {
return {
notifications: unionBy(
[newNotification],
previousResult.notifications,
previousResult?.notifications,
(notification) => notification.id,
).sort((a, b) => new Date(b.updatedAt) - new Date(a.updatedAt)),
}

View File

@ -39,6 +39,7 @@ export default () => {
deleted
postType
author {
id
name
}
categories {