Fix crash when opening more options for status in instance public timeline

This commit is contained in:
Shadowfacts 2020-05-11 17:58:43 -04:00
parent cd78287a87
commit 40863ef130
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ extension TuskerNavigationDelegate where Self: UIViewController {
let bookmarked = status.bookmarked ?? false
customActivites.insert(bookmarked ? UnbookmarkStatusActivity() : BookmarkStatusActivity(), at: 0)
if status.account.id == apiController.account.id {
if apiController.account != nil, status.account.id == apiController.account.id {
let pinned = status.pinned ?? false
customActivites.insert(pinned ? UnpinStatusActivity() : PinStatusActivity(), at: 1)
}