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
Jason Robinson
c2239327c3
Release v0.21.0
2020-12-20 03:11:04 +02:00
Jason Robinson
6b93e325a9
Fix some tests for newer Python version
2020-12-20 03:10:29 +02:00
Jason Robinson
836e19b40d
Remove the network utils `fetch_host_ip_and_country` and `fetch_country_by_ip`
...
The library that was used starting to require an API key.
2020-12-20 02:59:17 +02:00
Jason Robinson
26e6e4d04d
Support and test on python 3.8
2020-12-20 02:51:00 +02:00
Jason Robinson
1dd92a9b51
Start new dev cycle
2020-12-20 02:50:42 +02:00
Jason Robinson
f5d88b44bb
Release v0.20.0
2020-12-20 02:43:19 +02:00
jaywink
bbaac0383b
Merge branch 'cross-protocol' into 'master'
...
Cross protocol improvements
See merge request jaywink/federation!161
2020-05-01 22:53:20 +00:00
Jason Robinson
a29ab19166
Extract ActivityPub ID from Diaspora paylaods
...
Extract ActivityPub ID from Diaspora payloads if found as the `activitypub_id` property.
2020-04-25 03:18:21 +03:00
Jason Robinson
e1af61794b
Add AP ID to outbound Diaspora payloads
...
Add ActivityPub ID to outbound Diaspora payloads of types comment, post and profile,
if an URL given as `id`.
2020-04-25 03:04:55 +03:00
Jason Robinson
be89ae5453
Add Diaspora guid/handle to post/profile outbound ActivityPub
...
Add Diaspora extension and guid to outbound ActivityPub payloads, if available. For
profiles, also add handle.
2020-04-25 02:44:02 +03:00
Jason Robinson
9972b9d3fb
Extract Diaspora guid
...
Diaspora entity guid will now be extracted from ActivityPub payloads implementing the Diaspora extension.
2020-04-25 00:32:33 +03:00
jaywink
b4cc7071f4
Merge branch 'inbound-ap-html' into 'master'
...
Stop markdownifying received ActivityPub content
Closes socialhome/socialhome#198 and socialhome/socialhome#222
See merge request jaywink/federation!160
2020-04-13 18:33:18 +00:00
Jason Robinson
9469101549
Fix tag recognition if at start of HTML paragraph
2020-04-13 21:28:22 +03:00
Jason Robinson
dfaa692ea4
Add test ensuring mention classes are not stripped
...
By process_text_links text util.
2020-04-13 13:22:12 +03:00
Jason Robinson
7c1f1670b1
Fix tags separated by slashes not being identified
...
Fixes socialhome/socialhome#198
2020-04-13 12:40:35 +03:00
Jason Robinson
a2653239d6
Fix some characters stopping tags being identified
...
Closes socialhome/socialhome#222
2020-04-13 11:46:10 +03:00
Jason Robinson
f704175a21
Ensure tags are found also if wrapped within HTML blocks
2020-04-13 11:35:54 +03:00
Jason Robinson
13f0cf0db6
Stop markdownifying received ActivityPub content
...
It was causing more trouble than benefits. Just accept
HTML content into entities raw_content attribute and
let apps deal with it.
2020-04-12 23:32:42 +03:00
Jason Robinson
8200725e72
Add changelog for the relay fixes
2020-04-07 23:16:55 +03:00
Jason Robinson
aa0ecfb680
Tune debug logging context when reporting failed AP payloads
2020-04-07 23:12:54 +03:00
Jason Robinson
898ffffff0
Skip entities in handle_send if they are of other protocol
...
Currently we don't support relaying entities from another
protocol to another protocol. Skip them for now to avoid
lots of errors popping up.
2020-04-07 23:07:01 +03:00
Jason Robinson
bbeb9df9e7
Attempt to fix some handle_send issues
...
It seems sometimes AP deliveries are failing due to
an odd exception where assigning a "to" to the
payload fails with lxml related things. This seems
to indicate that some payload variable is leaking from
the diaspora payload generating to the activitypub code.
Try to ensure this wouldn't be possible to happen and
add some error context for Sentry to better identify
why this would happen, if this commit doesn't fix it.
2020-04-05 23:11:28 +03:00
Jason Robinson
bdc44ac59c
Don't always crash generating payloads if Django is installed but not configured
2020-02-22 01:32:19 +02:00
Jason Robinson
fd63767263
Fix sharedInbox from remote ActivityPub profiles
...
Fix reading `sharedInbox` from remote ActivityPub profiles. This caused public payloads not
to be deduplicated when sending public payloads to remote ActivityPub servers. Refetching
profiles should now fix this.
Closes #124
2020-02-22 01:31:46 +02:00
Jason Robinson
58d092d5f3
Expand payload_logger to log also protocol and sender
2020-02-20 22:13:26 +02:00
Jason Robinson
cb36a143d4
Add payload logger for handle_send and handle_create_payload
...
Outbound functions `handle_send` and `handle_create_payload` now accept an optional `payload_logger`
parameter. If given it should be a function that takes a `str` or `dict` payload as the only
parameter. This will be called for each generated payload.
2020-02-20 21:55:21 +02:00
jaywink
b2a214ec81
Merge branch 'find-tags' into 'master'
...
Various improvements to outbound HTML payload rendering for ActivityPub networks
Closes socialhome/socialhome#571 and #70
See merge request jaywink/federation!159
2020-02-17 22:10:16 +00:00
Jason Robinson
529a3bc5cc
Dont' crash get_name_for_profile in any situation
...
Because it will crash the whole payload creation.
2020-02-17 23:56:15 +02:00
Jason Robinson
26872a87c3
More stacktrace in logs when failing to generate a payload
2020-02-17 23:54:56 +02:00
Jason Robinson
721a775704
Fix debug 🤯
2020-02-17 23:40:35 +02:00
Jason Robinson
70ae9a3322
Add some debug
2020-02-17 23:31:51 +02:00