Repeat via API no longer works with StatusNet 1.0

Bug #888664 reported by Mats Sjöberg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
heybuddy
New
Undecided
Unassigned

Bug Description

Check "Use retweet API instead of default redent style" in Settings, then try repeating a dent on a StatusNet instance of version 1.0 or above. (e.g. identi.ca). The following patch will fix this problem, however it *might* break support for instances with versions < 1.0:

--- Communicator.py 2011-08-27 20:54:42 +0000
+++ Communicator.py 2011-11-10 18:15:34 +0000
@@ -317,11 +317,9 @@
   self.queue.append( (request,'new-statusXML',None) )

  def send_redent(self,status_id):
- url="%s/statuses/retweet.xml" % (self.sapiroot)
- data={"id":status_id}
- encoded_data =urlencode(data)
+ url="%s/statuses/retweet/%s.xml" % (self.sapiroot,status_id)
   print url
- request = urllib2.Request(url, encoded_data)
+ request = urllib2.Request(url, '')
   request.add_header("Authorization", self.authheader)
   self.queue.append( (request,'redent-statusXML',None) )

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.