Commits

David Chambers  committed bb75230

Removed unnecessary API call(s).

  • Participants
  • Parent commits 48a2493

Comments (0)

Files changed (1)

     if view_source:
         return http.HttpResponse(document.body, content_type=PLAIN)
 
-    thread = None
-    if FORUM:
-        try:
-            # accommodate old threads (Mango-made threads must be accessed by identifier)
-            thread = DISQUS.get_thread_by_url(FORUM, document.urls['canon']['abs'])
-            if not thread:
-                thread = DISQUS.thread_by_identifier(FORUM, document.title, document.urls['canon']['rel'])['thread']
-        except disqus.APIError, error:
-            logger.warning('Disqus API error: %s' % error)
+    thread = document._thread
 
     comment = request.session.pop('comment', None) if thread else None
     if comment is not None: