From 960620d91b57323984023b40ac681214a75dc7a9 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 16 Sep 2016 13:15:01 -0400 Subject: [PATCH] FIX: Respect the `acting_user` attribute on the PostValidator --- lib/new_post_manager.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/new_post_manager.rb b/lib/new_post_manager.rb index 40845d609..9d8c570fa 100644 --- a/lib/new_post_manager.rb +++ b/lib/new_post_manager.rb @@ -82,6 +82,7 @@ class NewPostManager validator = Validators::PostValidator.new post = Post.new(raw: manager.args[:raw]) + post.user = manager.user validator.validate(post) if post.errors[:raw].present? result = NewPostResult.new(:created_post, false)