Alain St-Denis
7fc1924019
changelog updates. removed commented out code and leftover prints.
2023-01-07 15:46:00 +00:00
Alain St-Denis
193a7ba076
freeze cryptography to 3.4.7 until requests-http-signature-jaywink is updated
2023-01-06 19:34:52 +00:00
Alain St-Denis
f437b47c84
add redis to setup.py
2023-01-06 18:39:44 +00:00
Alain St-Denis
8aeae85af1
tests fixes.
2023-01-06 18:34:00 +00:00
Alain St-Denis
541b05bac3
replace requests_cache context manager with direct redis access for pyld
2023-01-06 15:39:37 +00:00
Alain St-Denis
23ebcafa62
make cache backend global
2023-01-05 14:46:38 +00:00
Alain St-Denis
ada04ac212
reuse requests_cache backend in pyld document loader. make the Tombstone class more robust
2023-01-02 19:55:51 +00:00
Alain St-Denis
39a5e0f39e
add validation_target_id method to prevent sending Diaspora replies and shares to AP.
2022-12-23 16:11:52 +00:00
Alain St-Denis
36db16d0c5
forgot that socialhome doesn't keep the followers url in profiles
2022-12-22 14:39:43 +00:00
Alain St-Denis
dad652a264
rework requests cacheing. set a 2 hours expiration on cache entries except for jsonld term definitions. try to get remote profiles from the client app before fetching.
2022-12-22 14:18:48 +00:00
Alain St-Denis
7b2de4811c
Remove to_base from the Accept object class as it was uselessly returning the accepted Follow to the client
2022-12-10 15:14:18 +00:00
Alain St-Denis
6b690f26fa
fix an embarrassing python programming error
2022-12-09 17:36:58 +00:00
Alain St-Denis
f7df1dff6e
forgot to remove a few debug prints
2022-12-08 19:43:02 +00:00
Alain St-Denis
32773cdadc
fix a recursivity 101 issue.
2022-12-08 16:27:49 +00:00
Alain St-Denis
4bcefe1b0b
fix recursivity end case for extract_replies
2022-12-07 15:41:26 +00:00
Alain St-Denis
fee9577b58
properly handle cases where AP reply collections contain Note objects
2022-12-07 14:04:29 +00:00
Alain St-Denis
dadd92a0cc
add jsonld context to prevent single value arrays to be compacted to a string.
...
let the client app call extract_replies.
replace mentions text with user@domain in the source content property.
fix tests that were using as:Public in fixtures.
fix models.Person.to_as2 that would bot set the to property for Update activities.
2022-12-06 13:32:35 +00:00
Alain St-Denis
2342b193b1
fix a test and remove unused import.
2022-12-03 15:29:18 +00:00
Alain St-Denis
5b641a657a
get rid of the dynamically generated Post and Comment classes. It appears many calamus schemas can now us the same rdf_type
2022-12-03 15:02:12 +00:00
Alain St-Denis
6e07a9dbc8
don't verify signature on local profile remote requests
2022-12-02 13:24:42 +00:00
Alain St-Denis
5cfcd96d2f
add diaspora style markdown for mentions in source content
2022-12-01 15:00:47 +00:00
Alain St-Denis
6002cd948b
fix broken Video object
2022-11-29 15:35:22 +00:00
Alain St-Denis
32faf8e3b8
catch IndexError exception
2022-11-22 13:18:06 +00:00
Alain St-Denis
373aaa8da0
Use the profile.finger property to generate AP Mention objects
2022-11-21 16:44:11 +00:00
Alain St-Denis
76300e7b4a
Fixed diaspora/test_utils.py test.
2022-11-10 12:06:55 +00:00
Alain St-Denis
7a0542f903
Added the finger property to base.Profile. It is populated with the user's
...
Webfinger subject.
2022-11-10 04:24:15 +00:00
Alain St-Denis
f7e7c77480
add python-magic to requirements
2022-11-07 01:56:07 +00:00
Alain St-Denis
7cba524f38
Implement remote GET requests signature verification.
...
WIP: implement base.Collection entity.
All mentions are now extracted as handles. The client app is expected to do the same.
Diaspora mentions patched as per its protocol specification.
Outbound AP to and cc properties are now provided by the client app, ensuring a consistent payload for each receiver.
Various fixes to derived calamus field classes.
Various fixes to models using @property to map AP property to base entities properties.
All model classes now have their corresponding base entity class as a parent. Exception: Note which inherit RawContentMixin. The dynamically generated class are built with the correct parent class.
Ensure dynamically generated classes can be pickled (required by RQ).
Patch @context properly when only a string is provided.
Set a default value for some fields.
Fix Friendica tag extraction (will likely have to do the same for other platforms).
get_base_attributes now accept a tuple containing properties not to be excluded.
The Image base entity now uses magic to accept the application/octet-stream content type.
Adjust tests.
Gracefully handle cases where text/html is returned when application/ld+json is expected (Hubzilla does that).
2022-11-07 01:48:45 +00:00
Alain St-Denis
f48d7353b3
patch @context for owncast
2022-09-15 14:06:21 +00:00
Alain St-Denis
7c7fe3c6bf
Make adjustments to deal with a change in calamus that has inbound payloads
...
missing properties set to a singleton class instead of None.
2022-09-14 22:18:07 +00:00
Alain St-Denis
46a518f04a
fix tests
2022-09-11 16:52:39 +00:00
Alain St-Denis
63b591db46
Fix tests and other issues tests revealed
2022-09-08 11:40:37 +00:00
Alain St-Denis
ce00a6045d
fix extract_receivers + tweaks for outbound effect on inbound
2022-08-31 13:18:14 +00:00
Alain St-Denis
85b221f68a
remove activitipub/entities.py
2022-08-31 13:16:17 +00:00
Alain St-Denis
2018483257
outbound jsonld ready for testing
2022-08-29 13:55:26 +00:00
Alain St-Denis
916aa804a4
Merge branch 'master' into jsonld-outbound
2022-08-22 13:15:29 +00:00
Alain St-Denis
08ca0169fe
minor commit to let me rebase on more-content
2022-08-22 12:40:07 +00:00
Alain St-Denis
317fd932f4
initial commit to jsonld processed outbound ActivityPub payloads
2022-08-19 17:09:07 +00:00
Alain St-Denis
e3a039767f
Fetch public key from Signature header keyID field for signature verification.
...
Use identified language tag from content_map property instead of default.
2022-08-19 17:09:07 +00:00
Alain St-Denis
44f902f186
Cache requests only for pyld document loader
2022-08-19 17:09:07 +00:00
Alain St-Denis
f547473ca7
remove a debug print
2022-08-19 17:09:07 +00:00
Alain St-Denis
f248dc04f2
code robustness improvemwents. allow empty raw_content
2022-08-19 17:09:07 +00:00
Alain St-Denis
91faaf9f80
fix a few tests. update changelog
2022-08-19 17:09:07 +00:00
Alain St-Denis
2592e19f37
use EXCLUDE constant from marshmallow.utils instead of a string
2022-08-19 17:09:06 +00:00
Alain St-Denis
5d59e92540
changes to address comments made to merge request #167
2022-08-19 17:08:55 +00:00
Alain St-Denis
2aa0d161ab
enable inbound profile updates
2022-08-19 17:06:16 +00:00
Alain St-Denis
8c6bd7e160
fix extract_mentions for outgoing payloads
2022-08-19 17:06:16 +00:00
Alain St-Denis
441bbaeef0
Forgot to process the inline property. Hack added to @context for epicyon payloads
2022-08-19 17:06:16 +00:00
Alain St-Denis
2d8f3633f1
forgot to add the cache param to rerieve_remote_content
2022-08-19 17:06:16 +00:00
Alain St-Denis
ff25a88112
Revert to request_cache monkey patching, take #2 . Catch KeyError in model_to_objects.
...
Run extract_receivers for unsupported objects.
2022-08-19 17:06:16 +00:00