Jason Robinson
00b3fba440
Strip ending slash from NodeInfo2 base_url parsing
2018-11-01 22:33:36 +02:00
Jason Robinson
6c4c61938b
Merge branch 'activitypub-protocol' into 'master'
...
Add beginnings of Activitypub protocol with Follow activity
See merge request jaywink/federation!134
2018-10-22 20:50:58 +00:00
Jason Robinson
cef05fb226
Add missing PROTOCOL_NAME to ActivityPub protocol module
2018-10-22 23:23:54 +03:00
Jason Robinson
008c8e8971
Inital passing ActivityPub mapper tests, Follow passes
...
Skip the rest of the tests, implement one by one until the same
functionality of the Diaspora mappers is ready.
2018-10-13 12:08:12 +03:00
Jason Robinson
d1b9a9a877
Skeleton of ActivityPub mappers starting with Follow activity
2018-10-11 20:40:23 +03:00
Jason Robinson
d2c35a2cdc
Add ActivityPub to protocols and function to identify payload
2018-10-11 19:16:36 +03:00
Jason Robinson
c3f59e832e
Change activitypub_object_view get_object_function call signature
...
Pass now full request object instead of the object ID. This allows
the app to check permissions for the object.
2018-10-10 22:43:17 +03:00
Jason Robinson
6dd20c3521
Simplify process_payload call by passing in just request
2018-10-09 22:53:54 +03:00
Jason Robinson
aff1a8e59e
Tweak activitypub_object_view process_payload call signature
...
Now passes `response.content` as is and also passes in the request
object.
2018-10-09 22:46:23 +03:00
Jason Robinson
331421c216
Merge branch 'inbox' into 'master'
...
Django activitypub_object_view now processes POST to /inbox/
See merge request jaywink/federation!133
2018-10-09 19:26:56 +00:00
Jason Robinson
17c23b3be8
Django activitypub_object_view now processes POST to /inbox/
2018-10-09 22:24:46 +03:00
Jason Robinson
6db1d91579
Ensure handle is lower cased in rfc7033_webfinger_view
2018-10-01 20:03:18 +03:00
Jason Robinson
bbc5b0fae1
Remove pep8speaks
2018-09-30 21:06:05 +03:00
Jason Robinson
e5b08c9dad
Merge branch 'activitypub-further' into 'master'
...
ActivityPub initial work
See merge request jaywink/federation!132
2018-09-30 17:55:04 +00:00
Jason Robinson
3255f31173
Remove chat badges from readme
2018-09-30 20:50:59 +03:00
Jason Robinson
cae76b3da8
Add changelog entries for recent changes
2018-09-30 20:50:32 +03:00
Jason Robinson
985b97cc04
Documentation updates regarding ActivityPub and other things
2018-09-30 20:49:55 +03:00
Jason Robinson
b283ba9d89
Remove Python 2 related rows accidentally added
2018-09-30 18:52:45 +03:00
Jason Robinson
bc99fe42b4
Another fix to content types accepted by activitypub_object_view
2018-09-30 17:52:09 +03:00
Jason Robinson
882711a31a
Use right content types in activitypub_object_view decorator
2018-09-30 17:15:31 +03:00
Jason Robinson
ceb5d0446e
Add support for AS2 document webfinger rel used by Mastodon et al
...
Also fix reference to RFC by renaming RFC3033 to RFC7033 :P
2018-09-30 16:20:03 +03:00
Jason Robinson
865636c65b
Add following and followers collection urls to AP Profile entity
2018-09-30 15:36:43 +03:00
Jason Robinson
6ab1b937f8
Serialize Post to AS2 as Note
2018-09-30 13:34:07 +03:00
Jason Robinson
13ee55dfe8
Add url to Post, Image and Comment entities
2018-09-30 13:06:18 +03:00
Jason Robinson
9f829cb044
Finalize initial ActivityPub view decorator functionality
...
Now returns the AS2 serialized object, if found through the
configured fetch function.
2018-09-29 19:10:44 +03:00
Jason Robinson
251f558428
Move test settings and utils for Django to tests root
...
Fix first AS2 view decorator test.
2018-09-29 12:12:34 +03:00
Jason Robinson
2db416c38d
Make activitypub_object_view into a view decorator
2018-09-29 02:39:14 +03:00
Jason Robinson
97c0d79b50
Add ActivityPub object view
...
The AP object view takes in a request and either fetches the object
and renders an AS2 document or calls the fallback view, which normally
would for example be a HTML document.
The fetch function is used to get the object by ID from the application.
2018-09-26 23:31:03 +03:00
Jason Robinson
7b8f399468
Add with_slash text utility
...
Ensures the given text has a slash at the end.
2018-09-26 23:28:22 +03:00
Jason Robinson
837f463848
Add BaseEntity.username property
...
Returns username from handle or None.
2018-09-26 23:27:47 +03:00
Jason Robinson
a72153e9b4
Protocol entities should inherit base entity
...
Se some additional required in AcitivitypubEntityMixin
2018-09-25 23:51:39 +03:00
Jason Robinson
c4484d61c3
Add ActivityType enum
2018-09-25 23:50:34 +03:00
Jason Robinson
3b2aff13a1
Merge branch 'activepubs' into 'master'
...
Bring in latest refactoring related to ActivityPub work
See merge request jaywink/federation!131
2018-09-24 20:21:02 +00:00
Jason Robinson
2be12c356d
Changelogs for changes
2018-09-24 23:13:39 +03:00
Jason Robinson
cf790f8b92
No point in trying to retrieve remote diaspora content if no handle
2018-09-22 13:39:13 +03:00
Jason Robinson
979b43636d
Refactor away remaining diaspora URL generator usages :/
2018-09-03 23:14:28 +03:00
Jason Robinson
6bd0a1a3ae
Refactoring to not use diaspora URL's as ID's
...
Instead use handle or guid, whichever is relevant. Fill all attributes
on receive, expect necessary attributes on send (if supporting
diaspora).
2018-09-02 23:59:53 +03:00
Jason Robinson
7687bdd69e
Fix missing handle and guids in Diaspora mappers
2018-08-26 22:23:23 +03:00
Jason Robinson
89ba3f345b
Ensure sender_key_fetcher is called with id, not handle
2018-08-26 21:02:40 +03:00
Jason Robinson
946e40c0bb
Fix webfinger view
2018-08-26 19:53:48 +03:00
Jason Robinson
939dbf15d7
Return also guid to profile
...
But make Diaspora entities figure handle and guid from the ID's
if necessary. If ID's are not in diaspora format, they must be
passed in separately.
2018-08-26 16:46:24 +03:00
Jason Robinson
07e637a832
Return handle to Profile
...
This is required to send out profiles to the diaspora network.
The profile ID will not always be in Diaspora format and thus those
wanting to support Diaspora must supply a handle.
2018-08-22 23:00:15 +03:00
Jason Robinson
e049b7be97
Add optional handle and guid to UserType
...
Handle is required if delivering to Diaspora platforms.
2018-08-19 22:51:11 +03:00
Jason Robinson
890e2c940b
Make UserType an attrs class
2018-08-19 22:02:09 +03:00
Jason Robinson
7d78122cbc
Call get contact key with sender id, not handle
2018-08-19 20:05:03 +03:00
Jason Robinson
fd6f24ad34
Correct attribute _receiving_actor_id on BaseEntity
2018-08-12 19:42:22 +03:00
Jason Robinson
4c24e57bff
Make retrieve_remote_profile accept an ID
2018-08-12 17:58:59 +03:00
Jason Robinson
d2cba74a9d
Revert: WIP
2018-08-12 00:31:20 +03:00
Jason Robinson
f744c6635d
Fix type hinting problems due to pycryptodome move
2018-08-11 23:56:46 +03:00
Jason Robinson
cbf2e1f99c
WIP
2018-08-11 23:41:15 +03:00