Jason Robinson
07d4484077
Add NoSuitableProtocolFoundError to documentation
2017-05-01 18:58:29 +03:00
Jason Robinson
c99caa75c4
Improve some docstrings
2017-05-01 18:48:48 +03:00
Jason Robinson
3206cab1e1
Add changelog related to comment and like additions
2017-05-01 17:42:49 +03:00
Jason Robinson
e06509af19
Make Diaspora get_full_xml_representation take in private key as param instead of user
2017-05-01 17:32:46 +03:00
Jason Robinson
2a3700b518
Improve tests for relayable signing and verification
2017-05-01 11:37:13 +03:00
Jason Robinson
0a80f17334
PEP8 fixes
2017-05-01 11:01:44 +03:00
Jason Robinson
bac0898394
Make DiasporaLike a relayable
2017-05-01 11:00:21 +03:00
Jason Robinson
9e9ded2c3d
Remove SignedMixin in favour of base entity signing by default
...
While the signing methods are empty at the moment, preparation for ActivityPub, where every object would need to be signed separately (as signature is not in payload header but in the object itself), get rid of separate SignedMixin and just have signature and sign() on the base entity. Diaspora entities provide the necessary methods for signing and validation for DiasporaComment currently.
2017-05-01 10:54:31 +03:00
Jason Robinson
ce9c3c7ba4
Add create relayable signature method
...
Includes backwards incompatible changes when creating outbound entities.
2017-05-01 00:42:45 +03:00
Jason Robinson
268afb950b
Add relayable signature verification for DiasporaComment
2017-04-30 22:15:57 +03:00
Jason Robinson
b24a3370f2
Raise specific exception when Diaspora payload signature verification fails
...
Also convert another 'assert' to a raise. Asserts might be skipped in production environments.
Closes #61
2017-04-29 22:05:38 +03:00
Jason Robinson
a417cdda41
Add example comment payload for signature verification / creation work
2017-04-29 20:37:01 +03:00
Jason Robinson
14030faeb3
Add changelog entry for author_signature and _source_protocol
2017-04-23 22:14:38 +03:00
Jason Robinson
a606a7a4d2
Add source protocol name to entity
...
This could be useful for apps to know which protocol payload the entity was created from.
2017-04-23 22:09:43 +03:00
Jason Robinson
ba1365f009
Save Diaspora author_signature to entity
2017-04-23 22:09:04 +03:00
Jason Robinson
be329a5fe7
A few code style cleanups in entities/test_base
2017-04-23 21:48:18 +03:00
Jason Robinson
5eabc8faa1
Add SignedMixin to Comment and Reaction entities
...
Contains a required 'signature' attribute.
2017-04-23 21:47:17 +03:00
Jason Robinson
e60275fd6b
Remove unnecessary duplicated target_guid in ParticipationMixin
2017-04-23 20:10:37 +03:00
Jason Robinson
98ec137372
Merge pull request #71 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
2017-04-08 11:08:44 +03:00
The Gitter Badger
8652e9dc40
Add Gitter badge
2017-04-08 08:03:47 +00:00
Jason Robinson
7960e525b5
Fix remaining Social-Federation old name reference in docs
2017-04-08 11:00:06 +03:00
Jason Robinson
bedf5801e9
Release 0.10.1
2017-03-09 23:24:08 +02:00
Jason Robinson
f5e4379ff3
Merge pull request #69 from jaywink/fix-entity-tags
...
Ensure tags are lower cased after collecting them from raw_content
2017-03-09 23:22:50 +02:00
Jason Robinson
59d2b71041
Make pep8speaks less verbose
2017-03-09 23:18:47 +02:00
Jason Robinson
8ccb8eefdf
Ensure tags are lower cased after collecting them from raw_content
2017-03-09 23:18:44 +02:00
Jason Robinson
503076a30c
Add missing 0.10.0 timestamp to changelog
2017-01-28 16:56:38 +02:00
Jason Robinson
abfc01d3d5
Release 0.10.0
2017-01-28 16:55:35 +02:00
Jason Robinson
601e970cca
Merge pull request #68 from jaywink/fix-timestamp
...
Add support for new Diaspora timestamp format
2017-01-28 13:44:41 +02:00
Jason Robinson
f6a5438a54
Add support for new Diaspora timestamp format
...
Diaspora protocol changed to ISO 8601 timestamp format in protocol version 0.1.6.
Closes #67
2017-01-28 13:34:48 +02:00
Jason Robinson
2a10cb9ffd
Add Python 3.6 to setup.py classifiers
2017-01-12 22:05:19 +02:00
Jason Robinson
0a0fd80366
Merge pull request #66 from jaywink/python3.6
...
Build also Python 3.6 on Travis
2017-01-12 22:02:47 +02:00
Jason Robinson
3f0a412331
Merge pull request #65 from jaywink/exceptions
...
Don't crash diaspora retrieve_diaspora_webfinger on XRD parse error
2017-01-12 22:02:24 +02:00
Jason Robinson
ee0beb884d
Add .pep8speaks.yml
2017-01-12 21:58:37 +02:00
Jason Robinson
e9a8664ebb
Build also Python 3.6 on Travis
2017-01-12 21:56:26 +02:00
Jason Robinson
ef46515ee7
Don't crash diaspora retrieve_diaspora_webfinger on XRD parse error
2017-01-12 21:54:48 +02:00
Jason Robinson
1bf4d8f41a
Release 0.9.1
2016-12-10 16:33:30 +02:00
Jason Robinson
e4e2cb47fb
Merge pull request #64 from jaywink/profile-optional-raw-content
...
Made Profile.raw_content optional
2016-12-10 16:32:43 +02:00
Jason Robinson
b4559c256d
Made Profile.raw_content optional
...
This fixes validating profiles parsed from Diaspora hCard's.
2016-12-10 16:28:53 +02:00
Jason Robinson
dae45fc609
Release 0.9.0
2016-12-10 12:48:08 +02:00
Jason Robinson
46fc41e5cf
Merge pull request #63 from jaywink/images-support-for-status-messages
...
Fix Diaspora photo support and allow entities to have children
2016-12-10 12:38:22 +02:00
Jason Robinson
e7eb4b75bb
Fix Diaspora photo support and allow entities to have children
...
Diaspora photo elements are now processed correctly. Inbound parsing has been changed to also correctly add them to created entities as children, if they happen to be embedded in status messages, for example. Entity children can be iterated using the `_children` list.
Also rename the `Image.text` attribute to `Image.raw_content` to be more consistent.
Closes #62
2016-12-10 12:28:52 +02:00
Jason Robinson
334d6902e3
Release 0.8.2
2016-10-23 16:04:06 +03:00
Jason Robinson
1d0de928fc
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.
2016-10-23 16:03:00 +03:00
Jason Robinson
d01e656daf
Release 0.8.1
2016-10-18 22:34:45 +03:00
Jason Robinson
5b917838a8
Ensure send_document accepts headers in a case insensitive fashion
2016-10-18 22:33:35 +03:00
Jason Robinson
17ba97ab1f
Fix crash in send_document when passing in custom headers
...
`federation.utils.network.send_document` incorrectly passed in `kwargs` to `requests.post`, causing an error when sending custom headers.
2016-10-18 22:11:27 +03:00
Jason Robinson
7cac9e9227
Fix setup.py classifiers oops for 0.8.0 release
2016-10-09 15:36:28 +03:00
Jason Robinson
85d6f9c03d
Release 0.8.0
2016-10-09 14:58:21 +03:00
Jason Robinson
b5c92b1cac
Adjust badges
...
Remove PyPi downloads which doesn't seem to track pip installs, so useless. Replace Requires.io with Gemnasium.
2016-10-09 14:53:45 +03:00
Jason Robinson
11739c8fd2
Fix docs chatroom and support links
2016-10-05 21:52:00 +03:00