Jason Robinson
91cb60aac5
Bump allowed Django version in dev requirements
2019-08-04 23:23:39 +03:00
Jason Robinson
0489caf151
Merge branch 'add-receivers-to-entity' into 'master'
...
Add receivers in mappers to inbound entities
See merge request jaywink/federation!151
2019-08-04 19:24:18 +00:00
Jason Robinson
41637e7688
Add receivers in mappers to inbound entities
...
Entities processed by inbound mappers will now have a list of
receivers in `_receivers`. This replaces the
`_receiving_actor_id` which was previously set for Diaspora entities.
UserType now has a `receiver_variant` which is one of `ReceiverVariant`
enum. `ACTOR` means this receiver is a single actor ID.
`FOLLOWERS` means this is the followers of the ID in the receiver.
Contains terrible hack to figure out if ActivityPub to/cc contains
a reference to the followers collection of the sender 🙈 . Will replace
"later" with proper fetch+cache solution, once we have a cache.
Refs: https://git.feneas.org/socialhome/socialhome/issues/522
2019-08-04 17:41:08 +03:00
Jason Robinson
d9637a6ae5
Merge branch 'activitypub-retractions' into 'master'
...
Add support for Retraction to/from ActivityPub
See merge request jaywink/federation!150
2019-07-20 23:03:18 +00:00
Jason Robinson
80cce66734
Add support for Retraction to/from ActivityPub
...
Retraction produces a { Delete { Tombstone }} and receiving
one produces a Retraction. Retraction.entity_type is set as
"Object" since we don't know it just by looking at the payload.
2019-07-21 01:35:35 +03:00
Jason Robinson
761ae5c5de
Merge branch 'root_target' into 'master'
...
Add support for root parent for Comment entity
See merge request jaywink/federation!149
2019-07-15 14:16:53 +00:00
Jason Robinson
1e757ca43b
Add support for root parent for Comment entity
...
Added support for Diaspora `Comment` entity `thread_parent_guid`
attribute.
Added `root_target_id` and `root_target_guid` to `Comment` base entity.
This allows referring to a parent object up the hierarchy chain for
threaded comments.
2019-07-15 00:09:53 +03:00
Jason Robinson
0b1231012d
Merge branch 'activitypub-replies' into 'master'
...
Support for outbound and inbound replies for ActivityPub
See merge request jaywink/federation!148
2019-06-29 22:52:13 +00:00
Jason Robinson
fcb5d1147c
Don't subclass ActivitypubComment from ActivitypubPost
...
Leads to annoying base class comparison problems since
this will make ActivitypubComment also a Post.
2019-06-30 01:29:49 +03:00
Jason Robinson
b4a4d7128a
Add outbound support for Comment entity over ActivityPub
2019-06-30 01:11:10 +03:00
Jason Robinson
a333f7a9aa
Support parsing Comment entities for incoming ActivityPub payloads
...
Basically a Note with an inReplyTo.
2019-06-30 01:11:10 +03:00
Jason Robinson
471d40f05e
Fix parsing AP Note's with inReplyTo
2019-06-30 01:10:34 +03:00
Jason Robinson
14116923be
Merge branch 'jaywink/set-activitypub-profile-icon' into 'master'
...
Set profile icon properly for ActivityPub profiles
See merge request jaywink/federation!147
2019-06-29 21:24:59 +00:00
Jason Robinson
d0c8f6a20e
Set profile icon properly for ActivityPub profiles
2019-06-30 00:00:29 +03:00
Jason Robinson
1e629dd09c
Merge branch 'undo-follow' into 'master'
...
Support ActivityPub unfollow
See merge request jaywink/federation!146
2019-06-28 22:37:27 +00:00
Jason Robinson
f5db2ab835
Add support for outgoing unfollow in ActivityPub
...
Sent as Unfo{Follow}.
Also don't send an accept to an Undo{Follow}..
2019-06-29 01:21:33 +03:00
Jason Robinson
40c652c5f0
Support incoming Undo of a Follow for ActivityPub
2019-06-29 00:55:23 +03:00
Jason Robinson
68c956d68b
Merge branch 'fix-accept' into 'master'
...
Serialize accepted object into Accept
See merge request jaywink/federation!145
2019-06-28 21:33:31 +00:00
Jason Robinson
d9d936c736
Serialize accepted object into Accept
...
Instead of just referring to an ID which seems is not enough
for Mastodon at least.
2019-06-29 00:13:20 +03:00
Jason Robinson
9609892b9f
Fix regression in sending back an Accept for a Follow
2019-06-28 00:16:35 +03:00
Jason Robinson
f224202739
Merge branch 'activitypub-note' into 'master'
...
ActivityPub work to support sending and receiving a Note object
See merge request jaywink/federation!144
2019-06-25 21:23:03 +00:00
Jason Robinson
a2c2d55a03
Changelog change for outbound handle_send parameters change
2019-06-26 00:01:12 +03:00
Jason Robinson
579a9e7bf7
Add cc "fid" to outbound activitypub payloads
2019-06-22 02:15:24 +03:00
Jason Robinson
c0cb4cb949
Add some debug to rfc7033_webfinger_view generator
...
Some AP platforms seem to be making some weird requests.
2019-06-22 02:13:20 +03:00
Jason Robinson
36ad691ccd
Add "to" to "object" in outbound AP payloads, if object is a dict
2019-06-22 01:31:50 +03:00
Jason Robinson
d4cbbc5e77
Add endpoint to handle_send recipients dictionary
2019-06-21 01:33:16 +03:00
Jason Robinson
f0c96b86f3
Make AP public delivery "to" a list
2019-06-21 00:34:26 +03:00
Jason Robinson
b5d739f00a
Mark ActivityPub entity as public if public namespace in receivers
2019-06-21 00:34:26 +03:00
Jason Robinson
9fd4038039
Fix AS2 attribute transformation into raw_content
2019-06-21 00:34:26 +03:00
Jason Robinson
5436da4f1c
Make distinction between objects and activities when mapping AS2 ID's
2019-06-21 00:34:26 +03:00
Jason Robinson
56406056ae
Use AS2 payload object type if there is one, fall back to payload type
...
This allows getting the Note out of Create {Note}.
2019-06-21 00:34:26 +03:00
Jason Robinson
5cc2ab46bd
Render ActivitypubPost for to AS2 activity wrapped Note
...
Also ensure incoming processing maps Note, Article and Page
to an ActivitypubPost.
Refs: #7
2019-06-21 00:34:26 +03:00
Jason Robinson
4e2f40f7c8
Add a default activity to certain entity types
...
Default is Create for those entity types that are normally the
target of an activity. Those types that are normally activities don't
need a default activity.
Refs: #7
2019-06-21 00:34:26 +03:00
Jason Robinson
ffa59bece3
Update FUNDING.yml
2019-05-31 20:47:59 +00:00
Jason Robinson
726dc8e4c7
Add github funding button for patreon
2019-05-30 02:32:43 +03:00
Jason Robinson
947101421a
Add link to Feneas gitlab issue tracker
2019-05-18 21:32:28 +00:00
Jason Robinson
539c7f8bfb
Fix IPData lookup after 3.x version breaking changes
...
Thanks CI! <3
2019-05-12 18:56:40 +03:00
Jason Robinson
6238137eb8
Ensure _source_protocol is filled when creating Diaspora profile from hcard
2019-05-12 18:46:38 +03:00
Jason Robinson
30a2fadc65
Save source protocol and object on received ActivityPub objects
...
Also call validate entity on processing payloads to entities.
2019-05-12 18:32:41 +03:00
Jason Robinson
59d31bb37e
Merge branch 'activitypub' into 'master'
...
ActivityPub bi-directional Follow and outgoing automatic Accept support
See merge request jaywink/federation!143
2019-03-23 21:44:59 +00:00
Jason Robinson
2f056f0d58
Tests for ActivityPub utils
2019-03-23 23:43:09 +02:00
Jason Robinson
afe584fa0d
Add tests for Activitypub mappers new functionality
2019-03-20 23:11:22 +02:00
Jason Robinson
967f494dec
Add test for ActivitypubProfile entity
2019-03-20 22:50:43 +02:00
Jason Robinson
4b778112d8
Add test for ActivityPub Follow post receive Accept sending
2019-03-20 22:38:09 +02:00
Jason Robinson
273818dc43
Add test for ActivityPub Accept entity
2019-03-20 22:04:11 +02:00
Jason Robinson
0b34b509b0
Minor tweaks to ActivityPub base entities and Accept ID requirement
2019-03-20 22:03:53 +02:00
Jason Robinson
8aaedcc635
Fix sending ActivityPub Accept in response to a Follow
2019-03-18 23:41:05 +02:00
Jason Robinson
a72494240b
Fix sending accept when receiving a remote AP follow
2019-03-17 23:47:51 +02:00
Jason Robinson
4b62b83908
Default AP profile public inbox to private inbox, if no sharedInbox
2019-03-17 21:33:58 +02:00
Jason Robinson
dc8edbc7e6
Refactor handle_send function recipients and delivery code
...
The outbound function `outbound.handle_send` parameter `recipients`
structure has changed. It must now be a list of dictionaries,
containing at minimum the following: `fid` for the recipient endpoint,
`protocol` for the protocol to use and `public` as a boolean whether
the payload should be treated as visible to anyone.
For Diaspora private deliveries, also a `public_key` is required
containing the receiver public key. Note that passing in handles as
recipients is not any more possible - always pass in a url for `fid`.
2019-03-17 19:39:55 +02:00