mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-16 11:02:40 +01:00
Change edited_at to INT(11)
This commit is contained in:
parent
cd1c1730e4
commit
16b259ff15
@ -1594,9 +1594,9 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
|
||||
}
|
||||
|
||||
if ($edit_raw_html)
|
||||
$query = prepare(sprintf('UPDATE ``posts_%s`` SET `name` = :name,'. $trip .' `email` = :email, `subject` = :subject, `body` = :body, `body_nomarkup` = :body_nomarkup, `edited_at` = NOW() WHERE `id` = :id', $board));
|
||||
$query = prepare(sprintf('UPDATE ``posts_%s`` SET `name` = :name,'. $trip .' `email` = :email, `subject` = :subject, `body` = :body, `body_nomarkup` = :body_nomarkup, `edited_at` = UNIX_TIMESTAMP(NOW()) WHERE `id` = :id', $board));
|
||||
else
|
||||
$query = prepare(sprintf('UPDATE ``posts_%s`` SET `name` = :name,'. $trip .' `email` = :email, `subject` = :subject, `body_nomarkup` = :body, `edited_at` = NOW() WHERE `id` = :id', $board));
|
||||
$query = prepare(sprintf('UPDATE ``posts_%s`` SET `name` = :name,'. $trip .' `email` = :email, `subject` = :subject, `body_nomarkup` = :body, `edited_at` = UNIX_TIMESTAMP(NOW()) WHERE `id` = :id', $board));
|
||||
$query->bindValue(':id', $postID);
|
||||
$query->bindValue(':name', $_POST['name'] ? $_POST['name'] : $config['anonymous']);
|
||||
$query->bindValue(':email', $_POST['email']);
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="post_modified">
|
||||
{% if post.edited_at %}
|
||||
<div class="content-status edited">{% trans 'Post last edited at' %} <em class="edited-time">{{ post.edited_at }}</em></div>
|
||||
<div class="content-status edited">{% trans 'Post last edited at' %} <em class="edited-time"><time datetime="{{ post.edited_at|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.edited_at|date(config.post_date) }}</time></em></div>
|
||||
{% endif %}
|
||||
{% if post.clean.clean_local == '1' %}
|
||||
<div class="content-status clean-local">{% trans 'Board rules permit this content' %}</div>
|
||||
|
@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS ``posts_{{ board }}`` (
|
||||
`locked` int(1) NOT NULL,
|
||||
`sage` int(1) NOT NULL,
|
||||
`embed` text,
|
||||
`edited_at` DATETIME NULL,
|
||||
`edited_at` int(11) DEFAULT NULL,
|
||||
UNIQUE KEY `id` (`id`),
|
||||
KEY `thread_id` (`thread`,`id`),
|
||||
KEY `filehash` (`filehash`(40)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user