Fix status eventuall nil MastodonNotification
This commit is contained in:
parent
5532324f83
commit
b57f38ddc5
|
@ -45,7 +45,12 @@ public extension MastodonFeed {
|
||||||
MastodonFeed(
|
MastodonFeed(
|
||||||
hasMore: false,
|
hasMore: false,
|
||||||
isLoadingMore: false,
|
isLoadingMore: false,
|
||||||
status: nil,
|
status: {
|
||||||
|
guard let status = notification.status else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return .fromEntity(status)
|
||||||
|
}(),
|
||||||
notification: notification,
|
notification: notification,
|
||||||
kind: kind
|
kind: kind
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue