Commit graph

874 commits

Author SHA1 Message Date
Marius Orcsik
495ce2ea66
Removed the collection and path typer functionality
This will be moved to the processing package
2022-05-30 14:48:13 +02:00
Marius Orcsik
051d30fa3f
Folded back handlers typer functionality into the activitypub package 2022-05-30 14:02:51 +02:00
Marius Orcsik
5e6616a8d5
Updated go-ap packages 2022-05-29 15:25:34 +02:00
Marius Orcsik
897ab70990
Don't try to output anything if item collection is empty 2022-05-29 15:19:53 +02:00
Marius Orcsik
789dce20be
Updated activitypub package 2022-05-28 14:02:42 +02:00
Marius Orcsik
f32e7aa1f4
OnX generic function and some tests 2022-05-28 13:10:45 +02:00
mariusor
f3dbe6e621
Updated activitypub with IsNil fixed implementation 2022-05-25 14:49:10 +02:00
mariusor
1c63584463
Only check for nil on pointer values on non package types 2022-05-25 14:46:36 +02:00
mariusor
0773be749c
Updated activitypub package 2022-05-25 13:58:44 +02:00
mariusor
7414b7fad2
Unified some more the error for invalid types 2022-05-25 13:55:18 +02:00
mariusor
52ce087a26
Adding some Format methods for custom printing of objects 2022-05-25 13:46:03 +02:00
mariusor
5c59dccd55
Improved IsNil to handle all known types 2022-05-25 13:41:52 +02:00
mariusor
a9858c9098
Unified error messages when being unable to convert to specific types using OnXXX helpers 2022-05-25 13:36:56 +02:00
mariusor
05aaf624e6
Updated activitypub with IRI fmt improvements 2022-05-24 15:49:35 +02:00
mariusor
7c011e3a74
Added go fmt functionality for IRI to escape url query 2022-05-24 15:47:36 +02:00
mariusor
a8ab351bd6
Improve CollectionType.Of
We now check that both following things happen

Collection type matches OnActor collection types

Item type matches a Actor activity types
2022-05-24 12:23:01 +02:00
mariusor
835c891752
Updated activitypub package with removed race condition for ToActor 2022-05-24 12:16:05 +02:00
mariusor
7ed0d30e7c
Removing unsafe from ToActor
This might be a future proof way of doing these conversions, but they contain new allocations
2022-05-24 12:14:32 +02:00
mariusor
2923d5ac4f
Updated activitypub package with better Equals methods 2022-05-24 11:23:04 +02:00
mariusor
a60c25cc5c
Added Equals method to intransitive activity 2022-05-24 11:03:40 +02:00
mariusor
e8c528edf3
Improvements to Equals methods for actor and activity 2022-05-24 10:56:26 +02:00
Marius Orcsik
ffbd88a5f0
Final update 2022-05-23 23:36:56 +02:00
Marius Orcsik
3a6f70e8dd
Another special case 2022-05-23 23:05:36 +02:00
Marius Orcsik
d3c7b08d2b
Have specific case for IRIs in CollectionType.IRI 2022-05-23 22:35:31 +02:00
Marius Orcsik
6921b4d323
Add tests for IRIf 2022-05-23 20:47:23 +02:00
Marius Orcsik
ce99195aca
Test only local package 2022-05-23 20:22:34 +02:00
Marius Orcsik
451302a38f
Added an CollectionType.Of method to return the corresponding collection of an Item 2022-05-23 20:13:46 +02:00
Marius Orcsik
8908996896
Updated errors package 2022-05-22 15:00:40 +02:00
Marius Orcsik
7e329353c4
Remove some uneeded code 2022-05-22 14:07:06 +02:00
mariusor
cdf654d8ae
Updated activitypub package that supports array URLs 2022-04-20 11:13:45 +02:00
mariusor
4837641dc8
Converted the URL property to support an array of links as a value 2022-04-20 11:11:13 +02:00
Marius Orcsik
bc648cfc45
Updates errors package 2022-04-07 14:44:18 +02:00
mariusor
bd24563ded
Updated activitypub package 2022-03-23 16:22:34 +01:00
mariusor
947bcada60
Improve Flatten function for collections and items 2022-03-23 16:19:40 +01:00
mariusor
fd7ce7b1fb
Improved documentation on the remaining OnXXX functions for custom objects 2022-03-22 11:47:50 +01:00
mariusor
2d4ccbceb8
Improved documentation on some OnXXX functions 2022-03-22 11:39:01 +01:00
Marius Orcsik
fd0bfa95ef
Updated activitypub package with Normalize functionality 2022-03-20 15:17:38 +01:00
Marius Orcsik
109a45e9a0
Added a ItemCollection.Normalize method
It allows us to return an the first element in a collection if there is just one
2022-03-20 15:15:07 +01:00
Marius Orcsik
b3d7808579
Updated to go1.18 2022-03-19 20:38:21 +01:00
Marius Orcsik
0b791c7c7f
Fix CI pipeline 2022-03-19 20:30:00 +01:00
Marius Orcsik
79c0987785
Fix gob encoding the URL 2022-03-19 20:25:59 +01:00
Marius Orcsik
93a9596849
Using go1.18 and adding some interface types that can be used for generics 2022-03-19 20:14:56 +01:00
mariusor
b284abadbf
Updated activitypub package 2022-03-18 14:04:34 +01:00
mariusor
4a60b3c358
Some formatting 2022-03-18 14:02:09 +01:00
mariusor
826f263bfe
Added 'integration' tests to the test run 2022-03-16 11:51:55 +01:00
Marius Orcsik
071af346d1
Updated activitypub package 2022-03-13 11:28:55 +01:00
Marius Orcsik
5beb65d934
Use the jsonld content type from the item and collection handlers 2022-03-13 11:28:31 +01:00
Marius Orcsik
8eefc7992f
Fix json encoding for question.anyOf 2022-03-13 11:25:30 +01:00
Marius Orcsik
e96b926220
Don't try to output an intransitive activity's object 2022-03-12 09:37:12 +01:00
mariusor
79634f8f13
Update activitypub package with improved flatten function 2022-03-11 16:49:43 +01:00