- user web: update post.modified when edit post (fixes #491)

svn path=/trunk/boinc/; revision=14248
This commit is contained in:
David Anderson 2007-11-18 16:25:33 +00:00
parent 09177a1357
commit 990ce3e46f
2 changed files with 8 additions and 1 deletions

View File

@ -11241,3 +11241,9 @@ David 17 Nov 2007
forum_email.inc
user/
forum_user_posts.php
David 18 Nov 2007
- user web: update post.modified when edit post (fixes #491)
html/user/
forum_edit.php

View File

@ -47,7 +47,8 @@ if (post_str('submit',true) && (!$preview)) {
}
$content = substr($content, 0, 64000);
$content = BoincDb::escape_string($content);
$post->update("signature=$add_signature, content='$content'");
$now = time();
$post->update("signature=$add_signature, content='$content', modified=$now");
// If this post belongs to the creator of the thread and is at top-level
// (ie. not a response to another post)