app/commands/decidim/blogs/admin/create_post.rb in decidim-blogs-0.14.4 vs app/commands/decidim/blogs/admin/create_post.rb in decidim-blogs-0.15.0

- old
+ new

@@ -26,14 +26,21 @@ end private def create_post! - @post = Post.create!( + attributes = { title: @form.title, body: @form.body, component: @form.current_component, - decidim_author_id: @current_user.id + author: @current_user + } + + @post = Decidim.traceability.create!( + Post, + @current_user, + attributes, + visibility: "all" ) end def send_notification Decidim::EventsManager.publish(