 
             self?.extensionContext?.completeRequestReturningItems([], completionHandler: nil)
         }
-
-//        postFeed(message: contentText, URL: urls.first) { [weak self] finish in
-//
-//            print("postFeed URL finish: \(finish)")
-//
-//            self?.extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-//        }
-
-        /*
-        guard let item = extensionContext?.inputItems.first as? NSExtensionItem else {
-
-            extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-            return
-        }
-
-        guard let itemProvider = item.attachments?.first as? NSItemProvider else {
-
-            extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-            return
-        }
-
-        let URLTypeIdentifier = kUTTypeURL as String
-
-        guard itemProvider.hasItemConformingToTypeIdentifier(URLTypeIdentifier) else {
-
-            postFeed(message: contentText, URL: nil) { [weak self] finish in
-
-                print("postFeed onlyText finish: \(finish)")
-
-                self?.extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-            }
-
-            return
-        }
-
-        itemProvider.loadItemForTypeIdentifier(URLTypeIdentifier, options: nil) { [weak self] secureCoding, error in
-
-            guard error == nil else {
-
-                self?.extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-                return
-            }
-
-            guard let URL = secureCoding as? NSURL else {
-
-                self?.extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-                return
-            }
-
-            self?.postFeed(message: self?.contentText, URL: URL) { [weak self] finish in
-
-                print("postFeed URL finish: \(finish)")
-
-                self?.extensionContext?.completeRequestReturningItems([], completionHandler: nil)
-            }
-        }
-         */
     }
 
     override func configurationItems() -> [AnyObject]! {

                message = realBody

                doCreateFeed()

//                createFeedWithKind(kind, message: realBody, attachments: attachments, coordinate: nil, skill: self?.skill, allowComment: true, failureHandler: { reason, errorMessage in
//                    defaultFailureHandler(reason: reason, errorMessage: errorMessage)
//
//                    dispatch_async(dispatch_get_main_queue()) {
//                        completion(finish: false)
//                    }
//                    
//                }, completion: { _ in
//                    dispatch_async(dispatch_get_main_queue()) {
//                        completion(finish: true)
//                    }
//                })
            }

        case .Images(_, let mediaImages):

        case .PlainText:

            doCreateFeed()

        case .URL(let body, let URL):

