Wykres commitów

698 Commity (jsonld-processing)

Autor SHA1 Wiadomość Data
Alain St-Denis a2efbdd285 use EXCLUDE constant from marshmallow.utils instead of a string 2022-06-05 15:20:44 +00:00
Alain St-Denis 97db29ab73 changes to address comments made to merge request #167 2022-06-05 14:43:42 +00:00
Alain St-Denis 3236f667d4 update changelog. do not verify http signature without a public key. catch http signature exceptions. 2022-04-27 15:39:03 +00:00
Alain St-Denis 666951adc4 thanks to failing tests, made django config access more robust 2022-04-25 22:32:57 +00:00
Alain St-Denis 34f8bb0811 rewrote update_context to make it (hopefully) more robust
added django federation user to enable http signature on get requests
2022-04-25 21:31:44 +00:00
Alain St-Denis f9f94daae9 fix misuses of the len builtin. improve collection handling. 2022-04-24 14:27:54 +00:00
Alain St-Denis 6f86ea1595 argh, forgot to move django's get_configuration 2022-04-23 13:30:53 +00:00
Alain St-Denis b0fbaf1617 well, it seems setup.py doesn't want third party imports in federation/__init__.py. moved request_cache setup to utils/___init__.py 2022-04-23 13:26:06 +00:00
Alain St-Denis cd813f7ba4 pull redis config from django, move requests_cache setup to __init__ 2022-04-23 12:19:45 +00:00
Alain St-Denis 81300f8030 fix html string literals in tests and mixins.py for bleach 5.0.0 2022-04-21 13:23:05 +00:00
Alain St-Denis 02f2464542 pep8 code formatting 2022-04-20 13:50:07 +00:00
Alain St-Denis 78a4fa8aea improve context massaging to allow for more AP implementations (namely hubzilla, litepub and misskey).
all properties are now using snake case.
pep8 code formatting.
2022-04-20 13:31:12 +00:00
Alain St-Denis e00c47ea62 use jsonld collections with extract_receivers 2022-04-13 14:55:50 +00:00
Alain St-Denis cb6b7c7abb Fix a few logic errors 2022-04-09 02:14:02 +00:00
Alain St-Denis bb186ee63d Update tox.ini for python 3.10 2022-04-05 12:37:54 +00:00
Alain St-Denis 70bc9b75ac Update .gitlab-ci.yml file for python 3.10 2022-04-05 12:27:21 +00:00
Alain St-Denis 5aed54b70e autospec=True causes a test to fail. Removed it and adjusted the assert_called_once_with args 2022-04-05 11:00:01 +00:00
Alain St-Denis 333effbcad removed schema.py, replaed with models.py 2022-04-03 13:53:54 +00:00
Alain St-Denis d12cd6eb66 removed debug prints. switch request_cache to its default backend (sqlite) for now 2022-04-03 13:27:27 +00:00
Alain St-Denis 2c88cf9023 some tests and fixtures need updates to succeed with the jsonld processor 2022-04-02 20:21:36 +00:00
Alain St-Denis 8963326d12 switching from JsonLDSchema to JsonLDAnnotation, hopefully making the code easier to read 2022-04-02 20:20:02 +00:00
Alain St-Denis 2f4e611ee0 Rearranged code in schemas.py with the hope to make it more legible 2022-03-23 13:59:45 +00:00
Alain St-Denis 6056d79ec9 Rearrrange code to minimize changes outside schemas.py. Added more AP objects 2022-03-20 14:36:02 +00:00
Alain St-Denis 66c5dea561 Make Follow/Unfollow functional. Work on Post/Comment/Accept 2022-03-17 13:18:42 +00:00
Alain St-Denis 9578c26864 add calcmus and requests-cache dependendies 2022-03-15 22:33:40 +00:00
Alain St-Denis a0282eec11 WIP process AP payloads with a json-ld processor (calamus) 2022-03-15 22:29:41 +00:00
Jason Robinson 01357aacb0 Release v0.22.0 2021-08-15 21:26:59 +03:00
jaywink 0291d9dd98 Merge branch 'matrix/start-creating-tag-rooms' into 'master'
Start creating tag rooms and carbon copying posts to them based on the tags they contain

See merge request jaywink/federation!166
2021-05-08 21:37:11 +00:00
Jason Robinson 5a940e75f5 Fix get tag room alias and create tag room
Create room needs just the local part while the directory lookup needs the full alias. Adjust as needed.
2021-05-09 00:18:28 +03:00
Jason Robinson dd102d4575 Fix get_tag_room_alias
Needs to include also the server name.
2021-05-08 23:13:49 +03:00
Jason Robinson 5c79a5d1cb List tag rooms in room directory on creation 2021-05-03 23:49:36 +03:00
Jason Robinson 2714f6a973 Ensure tag room gets an alias
Also add link to tags stream in topic if configured.
2021-05-03 23:30:39 +03:00
Jason Robinson b7e6181594 Start creating tag rooms and carbon copying posts to them based on the tags they contain
This happens for public posts only. Post author appservice users will be invited to the rooms.
2021-05-02 23:18:05 +03:00
jaywink a64107da85 Merge branch 'matrix/create-missing-profiles' into 'master'
Ensure missing profiles are created on Matrix side

Closes #126 and #127

See merge request jaywink/federation!165
2021-05-02 19:29:05 +00:00
Jason Robinson d44e2e3c8f Make user own the Matrix profile room
Avoids needing to join it.
2021-05-02 22:27:40 +03:00
Jason Robinson 1d782f5f5a Remove a comment 2021-05-02 02:47:09 +03:00
Jason Robinson a82f75822e Revert invite in thread room creation 2021-05-02 02:46:54 +03:00
Jason Robinson ca521d4a03 Try again for room join 2021-05-02 02:20:26 +03:00
Jason Robinson a4228242de Tag thread rooms as low priority
So Element and other clients that respect tags don't clutter rooms should the appservice user use a client.
2021-05-02 01:49:07 +03:00
Jason Robinson 7973f3e87c Ensure joined to profile and thread rooms
Closes #126
2021-05-02 01:48:20 +03:00
Jason Robinson 448c8cd780 Ensure Matrix register call happens earlier
We need to register the user via the appservice before going on to the thread room creation later in MatrixRoomMessage.pre_send.
2021-05-02 01:15:46 +03:00
Jason Robinson fbaee66da8 Ensure missing profiles are created on Matrix side
If we try to send a Post to the Matrix appservice, missing profiles need creating.

Closes #127
2021-05-02 00:41:39 +03:00
Jason Robinson d5938186ac Make unique_recipients a list 2021-04-28 23:10:42 +03:00
Jason Robinson 63b7970c8f Add some debug 2021-04-28 23:02:05 +03:00
Jason Robinson 9244e96682 Changelog for handle_send fix 2021-04-28 22:19:25 +03:00
Jason Robinson 3b8d90cf99 Don't crash outbound.handle_send if payload fails to be generated and parent_user is None 2021-04-28 22:15:32 +03:00
jaywink cc6dd1cc43 Merge branch 'emulate-cerulean' into 'master'
Emulate Cerulean by creating a thread room for each top level post

See merge request jaywink/federation!164
2021-01-02 00:09:14 +00:00
Jason Robinson 36443e85a2 Emulate Cerulean by creating a thread room for each top level post 2021-01-02 01:48:35 +02:00
jaywink 6b3e17083a Merge branch 'images-to-matrix' into 'master'
Support images to Matrix

See merge request jaywink/federation!163
2021-01-01 01:29:47 +00:00
Jason Robinson 2fe45a35f0 Delete the temp file after uploading 2021-01-01 03:02:31 +02:00