summaryrefslogtreecommitdiff
path: root/model/Thread.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-04-14 17:23:56 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-04-14 17:23:56 -0600
commit5c0314a75d2722bb99918ef44473f4204462835a (patch)
tree7f930fd12305baad4e8944ed95f0136e749d3741 /model/Thread.php
parent424622fbdbe7065cb5b93b39d6cfc5ba0a31775e (diff)
Add 'date edited' attribute to posts
Diffstat (limited to 'model/Thread.php')
-rw-r--r--model/Thread.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Thread.php b/model/Thread.php
index aa48cfd..a9dc690 100644
--- a/model/Thread.php
+++ b/model/Thread.php
@@ -65,7 +65,7 @@ class Thread {
}
function get_latest_post($dbc) {
- $sql = "SELECT post_id FROM posts WHERE post_thread = " . $this->id . " ORDER BY post_date DESC LIMIT 1";
+ $sql = "SELECT post_id FROM posts WHERE post_thread = " . $this->id . " ORDER BY post_date_created DESC LIMIT 1";
$result = mysqli_query($dbc, $sql);
if (!$result) {
@@ -108,4 +108,4 @@ function get_all_threads($dbc) {
mysqli_free_result($result);
return $threads;
-} \ No newline at end of file
+}