Jason Robinson
ebacea83b0
Merge pull request #97 from jaywink/fix-diasporaprofile
...
Fix DiasporaProfile.from_base
2017-08-09 00:20:46 +03:00
Jason Robinson
b3c4ac76a6
Fix DiasporaProfile.from_base
...
Converting base entity `Profile` to `DiasporaProfile` for outbound sending missed two attributes, `image_urls` and `tag_list`. Those are now included so that the values transfer into the built payload.
2017-08-09 00:02:49 +03:00
Jason Robinson
5d3db57e65
Release 0.14.1...
2017-08-06 16:20:30 +03:00
Jason Robinson
e684b2aca4
Merge pull request #96 from jaywink/fix-relayables-regression
...
Fix regression in handling Diaspora relayables
2017-08-06 16:19:29 +03:00
Jason Robinson
c6343bbd74
Fix regression in handling Diaspora relayables
...
Due to security fix in 0.14.0. Payload and entity handle need to be allowed to be different when handling relayables.
2017-08-06 16:06:45 +03:00
Jason Robinson
36da89e0bb
Release 0.14.0
2017-08-06 15:35:54 +03:00
Jason Robinson
54365b3856
Merge pull request #95 from jaywink/verify-handles
...
Verify payload and entity handle are the same
2017-08-06 15:33:58 +03:00
Jason Robinson
934bd69bba
Verify payload and entity handle are the same
...
Add proper checks to make sure Diaspora protocol payload handle and entity handle are the same. Even though we already verified the signature of the sender, we didn't ensure that the sender isn't trying to fake an entity authored by someone else.
The Diaspora protocol functions `message_to_objects` and `element_to_objects` now require a new parameter, the payload sender handle. These functions should normally not be needed to be used directly.
2017-08-06 14:04:50 +03:00
Jason Robinson
6ba6f905f3
Fix travis python 3.6 build pip failure
2017-08-02 11:09:27 +03:00
Jason Robinson
b0742e7baf
Merge pull request #93 from jaywink/add-parent-user-handle-send
...
Refactor handle_send and handle_create_payload signatures
2017-07-29 13:58:13 +03:00
Jason Robinson
977c584d96
Refactor handle_send and handle_create_payload signatur
...
**Breaking change.** The high level `federation.outbound` functions `handle_send` and `handle_create_payload` signatures have been changed. This has been done to better represent the objects that are actually sent in and to add an optional `parent_user` object.
For both functions the `from_user` parameter has been renamed to `author_user`. Optionally a `parent_user` object can also be passed in. Both the user objects must have `private_key` and `handle` attributes. In the case that `parent_user` is given, that user will be used to sign the payload and for Diaspora relayables an extra `parent_author_signature` in the payload itself.
2017-07-29 13:43:35 +03:00
Jason Robinson
f0eba0e3d1
Release 0.13.0
2017-07-22 00:03:49 +03:00
Jason Robinson
b5b05444d7
Add missing 'Follow' entity to docs
2017-07-22 00:02:33 +03:00
Jason Robinson
a054ebee29
Merge pull request #92 from jaywink/add-created-at-to-diaspora-comment
...
Add created_at to Diaspora Comment entity XML creator + fix relayable support
2017-07-21 23:53:17 +03:00
Jason Robinson
77c307d302
Improve test coverage for relayable fixes
2017-07-21 23:46:19 +03:00
Jason Robinson
10fa2cf846
Enable correct Diaspora relayable behaviour
...
Store the original object when signing with parent, then use that for sending, not serializing our entity object.
This fixes relayable support broken with the new Diaspora protocol.
2017-07-21 23:21:30 +03:00
Jason Robinson
5b04e5ea84
Add created_at to Diaspora Comment entity XML creator
...
This is required in renewed Diaspora protocol.
Refs: #59
2017-07-21 22:51:16 +03:00
Jason Robinson
8c5f52c0a9
Improve changelog for #91 closure
...
Closes : #91
2017-07-19 00:58:34 +03:00
Jason Robinson
9876153cd4
Ensure Diaspora store_magic_envelope_doc survives bytes
2017-07-19 00:52:10 +03:00
Jason Robinson
109e97cbd9
Fix identifying Diaspora payload if it is passed to handle_receive as a bytes object
2017-07-19 00:39:47 +03:00
Jason Robinson
fcc38fc850
Minor documentation update
2017-07-05 20:08:24 +03:00
Jason Robinson
c30ec8ee95
Merge pull request #90 from jaywink/diaspora-encrypted-json
...
Support receiving new style Diaspora encrypted payloads
2017-07-05 16:49:19 +03:00
Jason Robinson
eed5e42f06
Add tests for encrypted Diaspora JSON payload receive
...
Refs: #83
2017-07-05 16:37:51 +03:00
Jason Robinson
670ec79fd5
Ensure JSON payloads are decoded from bytes when needed
...
Refs: #83
2017-07-05 00:56:28 +03:00
Jason Robinson
92e7a95700
Catch ValueError instead of JSONDecodeError
...
Seems the latter was only added in Python 3.5 and we support 3.4 still.
Refs: #83
2017-07-04 23:43:17 +03:00
Jason Robinson
b19facc7af
Remove an unused import
2017-07-04 23:32:06 +03:00
Jason Robinson
2e8d608256
Support receiving Diaspora new style encrypted JSON payloads
...
Decrypt the JSON and extract the Magic Envelope inside.
Closes #83
2017-07-04 23:24:39 +03:00
Jason Robinson
ccf161a5d3
Remove deprecated 'user.key' lookup for private key
2017-07-04 23:16:56 +03:00
Jason Robinson
64b1c8c02e
Minor code style cleanup
2017-07-04 23:14:02 +03:00
Jason Robinson
5580b5143f
Fix parsing Diaspora profile with empty tag_string
...
Closes #88
2017-07-03 22:53:08 +03:00
Jason Robinson
0363260374
Correctly extend entity _children
...
Certain payloads caused _children for an entity to be written over by an empty list. Correctly do an extend on it.
Closes #89
2017-07-03 22:30:24 +03:00
Jason Robinson
659ba5643d
Remove Post.photos attribute which was never used
...
It was replaced by the _children attribute.
2017-07-03 22:27:18 +03:00
Jason Robinson
bbd85571a1
Move mutable entity attribute defaults to __init__
...
Got bitten by defining mutable type defaults as class attributes. Moved them to class __init__ to ensure attributes are not shared across instances.
2017-07-03 22:22:42 +03:00
Jason Robinson
78d344d6a8
Fix getting sender from a combination of legacy Diaspora encrypted payload and new entity names
...
For example `author`. This combination probably only existed in this library.
2017-06-08 23:37:59 +03:00
Jason Robinson
e28e3fd587
Release 0.12.0
2017-05-22 23:25:54 +03:00
Jason Robinson
2773405f09
Merge pull request #86 from jaywink/receiving-guid-on-private-diaspora-payload
...
Add receiving user guid to entity for private Diaspora payloads
2017-05-21 22:54:58 +03:00
Jason Robinson
d64a2c27a2
Add receiving user guid to entity for private Diaspora payloads
...
Required for example to actually use (legacy) relationship retraction.
2017-05-21 22:46:23 +03:00
Jason Robinson
dd027d4699
Merge pull request #85 from jaywink/legacy-diaspora-requets-retraction
...
Support Diaspora legacy request retraction
2017-05-18 22:39:12 +03:00
Jason Robinson
41937389a5
Support Diaspora legacy request retraction
2017-05-18 22:32:31 +03:00
Jason Robinson
ec7bf037f5
Add changelog for Follow entity
2017-05-17 23:16:22 +03:00
Jason Robinson
10bb97fed8
Merge pull request #84 from jaywink/contact-entity
...
Add new Follow base entity and support for DiasporaContact
2017-05-17 23:13:14 +03:00
Jason Robinson
48b6787088
Add new Follow base entity and support for DiasporaContact
...
The simple follow maps to Diaspora Contact entity with following/sharing both true.
Closes #76
2017-05-17 23:05:07 +03:00
Jason Robinson
e0dd39d518
Merge pull request #81 from jaywink/salmon-receive-refactoring
...
Add support for new style Diaspora Salmon magic envelope in public payloads
2017-05-16 23:00:09 +03:00
Jason Robinson
1a5cb4d163
Add support for new style Diaspora Salmon magic envelope in public payloads
...
Closes #75
2017-05-16 22:53:50 +03:00
Jason Robinson
064d0fa366
Add IRC chat badge
2017-05-14 16:00:59 +03:00
Jason Robinson
930ea53ec5
Merge pull request #79 from jaywink/diaspora-salmon-changes
...
Identify new style Diaspora payloads
2017-05-13 00:19:07 +03:00
Jason Robinson
474db3744b
Identify new style Diaspora encrypted payload
...
Refs: #42
2017-05-13 00:12:35 +03:00
Jason Robinson
dda596affc
Identify new style Diaspora protocol public payload
...
This change is coming out in Diaspora version 0.7 soon.
Refs: #42
2017-05-12 23:59:30 +03:00
Jason Robinson
273b7ba47a
Free up the dependency upper versions
...
We have good test coverage and do a daily automated build. Free up dependency upper limits and lock them down when problems occur.
2017-05-12 23:20:05 +03:00
Jason Robinson
f857fe0ab4
Release 0.11.0
2017-05-08 22:23:10 +03:00