/** * Delete inner Facebook post * * @param integer $caseId * @param integer $messageId * * @return \Illuminate\View\View */ public function deleteInner($caseId, $messageId) { $comment = $this->innerComment->find($messageId); $comment->delete(); $this->facebookContent->deleteFbPost($comment); return back(); }
/** * Delete reaction * * @param integer $id * @return view */ public function deleteReaction($id) { $reaction = $this->reaction->find($id); $reaction->delete(); if ($reaction->fb_post_id != '') { $this->facebookContent->deleteFbPost($reaction); } if ($reaction->tweet_id != '') { $this->twitterContent->deleteTweetPublishment($reaction); } return back(); }