From 40863ef130c130b831df1c192a0e009cec886bd8 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 11 May 2020 17:58:43 -0400 Subject: [PATCH] Fix crash when opening more options for status in instance public timeline --- Tusker/TuskerNavigationDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/TuskerNavigationDelegate.swift b/Tusker/TuskerNavigationDelegate.swift index 7b621aea..ff8d2109 100644 --- a/Tusker/TuskerNavigationDelegate.swift +++ b/Tusker/TuskerNavigationDelegate.swift @@ -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) }