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


    @IBAction func presentExtraPostActions(sender: UIButton) {
        
        // Dimiss keyboard before doing anything else
        //
        // self.buttonNewCommentTextView.resignFirstResponder()
        
        let thisActionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .ActionSheet)
        
        let shareAction = UIAlertAction(title: "Share post", style: .Default, handler: nil)

        thisActionSheet.addAction(shareAction)
        

        
    }

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