Wykres commitów

661 Commity (ca521d4a03f6f4daa21dd8a13e5e10be0becf826)

Autor SHA1 Wiadomość Data
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
Jason Robinson e4db91503b Fetch and upload embedded images before sending to Matrix 2021-01-01 02:48:40 +02:00
Jason Robinson 82ac0ce3cf Refactor up the embedded image recognition code from ActivityPub AttachImagesMixin to the base RawContentMixin so Matrix can use that too to upload images pre sending. 2020-12-29 23:12:06 +02:00
Jason Robinson 4566b252a1 Changelog for images in markdown fix 2020-12-27 23:08:36 +02:00
Jason Robinson f512d8a9dc Make IDE linter happier in some touched files 2020-12-27 23:04:55 +02:00
Jason Robinson 0bfadd059e Additional test while hunting for the image delivery bug 2020-12-27 22:59:40 +02:00
Jason Robinson 33c6edac7f Fix wrongly linkified image urls with markdown AP content
When we get a Markdown source in AP, we prefer that over HTML. Our linkifying of urls however should not be run in this case, we want the markdown to be as it was sent.

Fixes broken images between Socialhome instances.
2020-12-27 22:59:21 +02:00
Jason Robinson e55f13a117 Fix tests 2020-12-27 17:24:27 +02:00
Jason Robinson 48373ad615 Room events are PUT not POST 2020-12-27 02:07:42 +02:00
Jason Robinson ccd975ce46 Actually fix profile room ID lookup 2020-12-27 01:55:55 +02:00
Jason Robinson 8797a08c02 Fix profile room ID lookup and make code more DRY 2020-12-27 01:43:41 +02:00
Jason Robinson c40194da95 Support Post entities on Matrix side into profile rooms 2020-12-27 01:10:31 +02:00
Jason Robinson 0abb33a4fb Merge branch 'matrix-delivery' 2020-12-27 00:39:00 +02:00
Jason Robinson 49e5f0a511 Don't crash on outbound_send if matrix payload has no method 2020-12-27 00:29:13 +02:00
Jason Robinson 7608047b9e Create Matrix profile rooms 2020-12-27 00:10:06 +02:00
jaywink 7ac452e65c Merge branch 'matrix-delivery' into 'master'
First parts of the Matrix payload delivery

See merge request jaywink/federation!162
2020-12-25 21:07:53 +00:00
Jason Robinson 0d92387339 Ensure method is never None in send_document 2020-12-25 17:08:28 +02:00
Jason Robinson 7bd114ac59 Make handle_send call a bit safer 2020-12-25 16:53:28 +02:00
Jason Robinson 51c46364f3 Include userid in the endpoint when setting displayname 2020-12-25 16:49:14 +02:00
Jason Robinson 3dd9921899 Optionally support PUT in send_document
Defaults to POST. Matrix display name update uses PUT.
2020-12-25 01:26:03 +02:00
Jason Robinson 602c576aec Actually implement matrix build_send 2020-12-25 01:06:21 +02:00
Jason Robinson 6d1304ab68 append not add 2020-12-25 00:48:58 +02:00
Jason Robinson dc2102a7b8 MatrixProfile now generates a list of payloads 2020-12-25 00:17:10 +02:00
Jason Robinson c469f74e29 Fix tests 2020-12-24 22:21:20 +02:00
Jason Robinson d981cb7811 Add mxid to Profile
Calculate endpoint for Matrix entities.
2020-12-24 22:15:27 +02:00
Jason Robinson 499d222719 sender_localpart -> shortcode. Give appservices also an exclusive namespace for users and aliases. 2020-12-24 15:36:38 +02:00
Jason Robinson dfc7264465 Fixes, event type, enums 2020-12-24 01:27:56 +02:00
Jason Robinson f9d03fd916 Start adding basic Matrix entities 2020-12-24 01:16:31 +02:00
Jason Robinson 82f3aed21b Start adding outbound parts of delivering Matrix messages 2020-12-24 00:58:13 +02:00
Jason Robinson d52c21e8bc Identify Matrix AS payloads 2020-12-24 00:06:27 +02:00
Jason Robinson 524e5efbfd Add Django views for the Matrix appservice transactions 2020-12-23 23:30:05 +02:00
Jason Robinson 449089a59e Changelog for appservice commit 2020-12-21 23:10:23 +02:00
Jason Robinson 01dac38921 Add configuration for Matrix appservice registration file
Includes a function to print it out in YAML.

Currently requires Django configured.
2020-12-21 23:09:29 +02:00
Jason Robinson aeb1b37e2c Update some docs and add words about Matrix 2020-12-21 22:06:00 +02:00
Jason Robinson 1b461806f0 Add Matrix utility function to register users on Dendrite 2020-12-21 22:05:43 +02:00
Jason Robinson 48be2cbb6e Add `federation.hostmeta` generators for Matrix client and server well-known files.
Django views and url configuration also included for convenience.
2020-12-20 17:55:01 +02:00
Jason Robinson 34d04f01f1 Start new development cycle 2020-12-20 17:21:36 +02:00
Jason Robinson 153f779fa5 Fix python version in tox 2020-12-20 03:31:09 +02:00