Fix status eventuall nil MastodonNotification

This commit is contained in:
Marcus Kida 2023-12-04 09:56:48 +01:00
parent 5532324f83
commit b57f38ddc5
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 6 additions and 1 deletions

View File

@ -45,7 +45,12 @@ public extension MastodonFeed {
MastodonFeed(
hasMore: false,
isLoadingMore: false,
status: nil,
status: {
guard let status = notification.status else {
return nil
}
return .fromEntity(status)
}(),
notification: notification,
kind: kind
)