summaryrefslogtreecommitdiff
path: root/includes/model/Post.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model/Post.php')
-rwxr-xr-xincludes/model/Post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/model/Post.php b/includes/model/Post.php
index 7e02793..eae3d3e 100755
--- a/includes/model/Post.php
+++ b/includes/model/Post.php
@@ -89,13 +89,13 @@ class Post
function get_content(): string
{
// Build the header
- $result = '<div class="header" id="p' . $this->id . '"><b>#' . $this->id . '</b>';
+ $result = '<p class="header" id="p' . $this->id . '"><b>#' . $this->id . '</b>';
$result .= ' Posted by <a href="viewuser.php?id=' . $this->author->id . '">' . $this->author->name . '</a>';
$result .= ' on ' . date('m/d/Y g:ia', strtotime($this->date_created));
if (Session::get()->is_signed_in() && Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR) {
$result .= '<a href="moderate.php?type=post&id=' . $this->id . '" style="float:right;">[Options]</a>';
}
- $result .= '</div>';
+ $result .= '</p>';
// Append the formatted post content
$result .= '<span class="post-content">' . format_post_content($this->content) . '</span>';