Commit graph

903 commits

Author SHA1 Message Date
81405e14ea
Add NotEmptyChecker to overwrite default NotEmpty function 2022-11-26 17:14:42 +00:00
83b604a5ab
Merge remote-tracking branch 'upstream/master' 2022-11-25 20:56:31 +00:00
mariusor
cb8207231e
Adding some functionality to make IRIs type behave like a CollectionInterface 2022-11-19 20:09:06 +08:00
mariusor
716ebebd22
Updated errors package 2022-11-15 13:26:18 +08:00
mariusor
f052192b39
Fix IsNil for unrecognized types 2022-11-04 19:01:11 +01:00
mariusor
066cec4fee
Updated error package 2022-11-04 16:38:00 +01:00
mariusor
92ecfe47ba
More improvements to the CollectionType.Of method
It has become a little too complex for my taste
2022-11-04 10:48:14 +01:00
mariusor
ff75b785ab
Fix IRI.AddPath 2022-11-03 16:51:09 +01:00
mariusor
3f5197d77b
Allow CollectionPath.Of on IRIs 2022-11-03 14:55:20 +01:00
mariusor
1ffdb48e69
Add some convenience functions to initialize NaturalLanguageValues properties 2022-11-03 14:54:37 +01:00
mariusor
1c6c4d8444
Replace 'path' with 'file/path' 2022-11-03 14:53:54 +01:00
Marius Orcsik
e2b6e01b27
Remove coverage push to codecov, as we no longer have access to secrets 2022-10-30 10:15:45 +01:00
d347f3e987
Merge remote-tracking branch 'upstream/master' 2022-09-23 17:29:00 +00:00
Marius Orcsik
e4e7018838
Updated jsonld package 2022-09-17 16:31:52 +02:00
ee7ec91cd8
Update module path to gitea.com/xy/activitypub 2022-09-15 10:32:16 -05:00
79a43a9982
Remove empty check from JSONLoadItem 2022-08-20 22:37:18 -05:00
29bb602eb1
Export all write* functions as JSONWrite* 2022-08-20 21:27:03 -05:00
b9fb54dea7
Rename module to gitea.com/Ta180m/activitypub 2022-08-20 11:51:20 -05:00
Marius Orcsik
23f9512103
Export everything in decoding_json 2022-08-20 17:43:45 +02:00
mariusor
0c84d76ce5
Improved documentation for collection groups that correspond to activity processing operations 2022-07-06 15:48:11 +02:00
Marius Orcsik
9f77adaa0b
Updated errors and xsd-duration packages 2022-07-03 14:34:09 +02:00
mariusor
48208c7048
Updated jsonld package with better @context 2022-06-15 16:44:28 +02:00
Marius Orcsik
4c61caf651
Removed initializing the inbox, outbox, liked collections in NewActor 2022-06-12 11:58:08 +02:00
Marius Orcsik
d23c21aea0
Reorganizing the benchmarks for To/On 2022-06-06 15:00:25 +02:00
Marius Orcsik
725d9a665e
Some basic tests for object ids 2022-06-06 13:22:54 +02:00
Marius Orcsik
697681d8d4
Added benchmarks for 'ToXX' vs 'To[T type]'
They show some weird numbers considering the 'On' benchmarks
2022-06-04 19:19:30 +02:00
Marius Orcsik
6917e06269
Added benchmark and comment about generic On/To pair 2022-06-04 16:47:31 +02:00
mariusor
07cf4a27c1
Added the ItemCollection case to On[Objects] 2022-06-03 14:57:44 +02:00
mariusor
b7c961002d
Make the To[Objects] and On[Objects] generic functions work
They lose functionality as opposed to the more specific ones because we can't check for it being an ItemCollection
2022-06-03 09:23:48 +02:00
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