Fix status eventuall nil MastodonNotification
This commit is contained in:
parent
5532324f83
commit
b57f38ddc5
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue