Fixed storing original poster in posts

This commit is contained in:
Marcin Kurczewski 2013-10-12 10:42:29 +02:00
parent fc2ed52016
commit b9a6dab7ae

View file

@ -184,7 +184,8 @@ class PostController
$dbPost->safety = $suppliedSafety; $dbPost->safety = $suppliedSafety;
$dbPost->upload_date = time(); $dbPost->upload_date = time();
$dbPost->sharedTag = $dbTags; $dbPost->sharedTag = $dbTags;
$dbPost->ownUser = $this->context->user; $dbPost->user = $this->context->user;
$dbPost->size = filesize($suppliedFile['tmp_name']);
move_uploaded_file($suppliedFile['tmp_name'], $path); move_uploaded_file($suppliedFile['tmp_name'], $path);
R::store($dbPost); R::store($dbPost);