 
     @IBAction func presentExtraPostActions(sender: UIButton) {
         
-        // Dimiss keyboard before doing anything else
-        //
-        // self.buttonNewCommentTextView.resignFirstResponder()
+        //
+        // Set up an action sheet and add our extra actions using
+        // the UIButton tag and UIButton itself as function params.
+        //
+        
+        let postIndex = sender.tag
         
         let thisActionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .ActionSheet)
         
-        let shareAction = UIAlertAction(title: "Share post", style: .Default, handler: nil)
+//        let shareAction = UIAlertAction(title: "Share post", style: .Default, handler: nil)
+        let shareAction = UIAlertAction(
+            title: "Share post",
+            style: .Default,
+            handler: { action in
+                self.shareButtonClicked(postIndex, button: sender)
+            }
+        )
 
         thisActionSheet.addAction(shareAction)
         

        
    }

    @IBAction func shareButtonClicked(sender: UIButton) {
        
        print("sender.tag \(sender.tag)")
        
        let _thisReport = JSON(self.reports[(sender.tag)])
        let reportId: String = "\(_thisReport["id"])"
        var objectsToShare: [AnyObject] = [AnyObject]()
        let reportURL = NSURL(string: "https://www.waterreporter.org/community/reports/" + reportId)

                
                let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
                
                activityVC.popoverPresentationController?.sourceView = button

                self.presentViewController(activityVC, animated: true, completion: nil)
            }
            else {
                let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
                
                activityVC.popoverPresentationController?.sourceView = button

                self.presentViewController(activityVC, animated: true, completion: nil)
            }
