kopia lustrzana https://gitlab.com/jaywink/federation
Remove legacy splitting of payload to 60 chars when creating Diaspora payloads
It looks like new 0.6 diaspora doesn't understand these payloads any more.merge-requests/130/head
rodzic
d01e656daf
commit
1d0de928fc
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Remove legacy splitting of payload to 60 chars when creating Diaspora payloads. Diaspora 0.6 doesn't understand these any more.
|
||||||
|
|
||||||
|
|
||||||
## [0.8.1] - 2016-10-18
|
## [0.8.1] - 2016-10-18
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -361,10 +361,6 @@ class Protocol(BaseProtocol):
|
||||||
self.create_encrypted_payload())).decode("ascii")
|
self.create_encrypted_payload())).decode("ascii")
|
||||||
else:
|
else:
|
||||||
payload = urlsafe_b64encode(self.create_payload()).decode("ascii")
|
payload = urlsafe_b64encode(self.create_payload()).decode("ascii")
|
||||||
# Split every 60 chars
|
|
||||||
payload = '\n'.join([payload[start:start+60]
|
|
||||||
for start in range(0, len(payload), 60)])
|
|
||||||
payload = payload + "\n"
|
|
||||||
etree.SubElement(env, "{%s}data" % nsmap["me"],
|
etree.SubElement(env, "{%s}data" % nsmap["me"],
|
||||||
{"type": "application/xml"}).text = payload
|
{"type": "application/xml"}).text = payload
|
||||||
sig_contents = payload + "." + \
|
sig_contents = payload + "." + \
|
||||||
|
|
Ładowanie…
Reference in New Issue