 
     func processAttachments() {
         guard let extensionItem = extensionContext?.inputItems.safeValue(0) as? NSExtensionItem else {
+            finishProcessing()
             return
         }
 

            ShareAttachmentProcessor.preview(extensionItem) { previews in
                inForeground {
                    self.itemPreviews = previews
                }
            }
        }
    }

    func showSpinner() {

        PostEditingService().create(content: content, buyButtonURL: nil)
            .thenFinally { post in
//                Tracker.shared.shareSuccessful()
                self.dismissPostingForm()
            }
            .catch { error in
//                Tracker.shared.shareFailed()
                self.showFailedToPost()
            }
            .always { _ in
                self.donePosting()
            }
    }

