Fixed storing original poster in posts
This commit is contained in:
parent
fc2ed52016
commit
b9a6dab7ae
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue