Skip to content

Commit

Permalink
Fix endpoint for topic creation
Browse files Browse the repository at this point in the history
Resolves #8
  • Loading branch information
samamorgan committed Mar 23, 2020
1 parent 2650b6c commit 0b4d8df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions discourse/session.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import json

import requests

from .models import *
Expand Down Expand Up @@ -115,7 +113,7 @@ def create_topic(self, title, raw, category=None, created_at=None):
"category": category,
"created_at": created_at,
}
response = self.post("topics.json", params=params)
response = self.post("posts.json", params=params)

return Topic(self, **response)

Expand Down

0 comments on commit 0b4d8df

Please sign in to comment.