lib/discourse_api/api/posts.rb in discourse_api-0.2.7 vs lib/discourse_api/api/posts.rb in discourse_api-0.2.8
- old
+ new
@@ -1,9 +1,10 @@
module DiscourseApi
module API
module Posts
- def create_post(topic_id:, raw:)
- post("/posts", topic_id: topic_id, raw: raw)
+ def create_post(args)
+ post("/posts", API.params(args)
+ .required(:topic_id, :raw))
end
end
end
end