From b9a6dab7ae4c5d6e3d6ce64b76cc49b131d0ee0d Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 12 Oct 2013 10:42:29 +0200 Subject: [PATCH] Fixed storing original poster in posts --- src/Controllers/PostController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 0f4882d7..0ac44dbb 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -184,7 +184,8 @@ class PostController $dbPost->safety = $suppliedSafety; $dbPost->upload_date = time(); $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); R::store($dbPost);