diff --git a/Mastodon/Protocol/Provider/DataSourceFacade+Status.swift b/Mastodon/Protocol/Provider/DataSourceFacade+Status.swift index 90b5b184e..5872fe5b5 100644 --- a/Mastodon/Protocol/Provider/DataSourceFacade+Status.swift +++ b/Mastodon/Protocol/Provider/DataSourceFacade+Status.swift @@ -312,10 +312,16 @@ extension DataSourceFacade { } // end Task case .shareStatus: Task { - guard let status = menuContext.status else { + let managedObjectContext = dependency.context.managedObjectContext + guard let status: ManagedObjectRecord = try? await managedObjectContext.perform(block: { + guard let object = menuContext.status?.object(in: managedObjectContext) else { return nil } + let objectID = (object.reblog ?? object).objectID + return .init(objectID: objectID) + }) else { assertionFailure() return } + let activityViewController = try await DataSourceFacade.createActivityViewController( dependency: dependency, status: status