From 8b44cecf9637e77cf0495e5ad08fdd033b39f06f Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sun, 6 Jun 2021 09:05:53 -0600 Subject: Remove manage post and search pages --- includes/model/Post.php | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'includes/model/Post.php') diff --git a/includes/model/Post.php b/includes/model/Post.php index 42add02..49fd640 100644 --- a/includes/model/Post.php +++ b/includes/model/Post.php @@ -94,18 +94,6 @@ class Post $result = '
#' . $this->id . ''; $result .= ' Posted by ' . $this->author->name . ''; $result .= ' on ' . date('m/d/Y g:ia', strtotime($this->date_created)); - - // If the post has a edit date, display it - if (!is_null($this->date_edited)) { - $result .= ' edited ' . date('m/d/Y g:ia', strtotime($this->date_edited)) . ''; - } - - // Append a manage post button if the user is signed in and is the post's creator - if (Session::get()->is_signed_in() && Session::get()->get_current_user()->id == $this->author->id) { - $result .= ''; - $result .= '[Edit/Delete]'; - $result .= ''; - } $result .= '
'; // Append the formatted post content -- cgit v1.2.3