Commit graph

565 commits

Author SHA1 Message Date
Marius Orcsik
67aa065f9f
Some other places where we removed Object from names of things 2019-12-05 19:16:48 +01:00
Marius Orcsik
b89c9ee68c
Renamed ObjectID to ID 2019-12-05 19:02:15 +01:00
Marius Orcsik
0a9945a0d9
Moved object id to its own file 2019-12-05 16:43:55 +01:00
Marius Orcsik
57ad0db747
Moved nil LanguageRef constant to natural language file 2019-12-05 16:43:04 +01:00
Marius Orcsik
df62354866
Some cleanups on helper OnXXX functions 2019-12-05 16:42:27 +01:00
Marius Orcsik
bd2b51124f
Some improvements to copying collection information 2019-12-05 16:41:53 +01:00
Marius Orcsik
3d94dd494e
Removed issue #1 from the readme 2019-12-04 19:34:41 +01:00
Marius Orcsik
e66f1da47a
Add Actor type to ToObject handling 2019-12-04 19:34:04 +01:00
Marius Orcsik
2abe35692b
Forgot to add the collection pages to OnXCollection functions 2019-12-04 19:33:15 +01:00
Marius Orcsik
4a6d2e2600
Added security namespace and moved constants to iri 2019-12-04 16:34:38 +01:00
Marius Orcsik
f05a08688f
Moved natural language values to their own file 2019-12-04 16:28:45 +01:00
Marius Orcsik
463e77224a
Renamed the files as they refer now to just a single type 2019-12-04 16:16:32 +01:00
Marius Orcsik
05993b7914
Added Recipients and Clean to Actor type 2019-12-03 21:58:05 +01:00
Marius Orcsik
48db6d24ad
Renamed OnPerson to OnActor 2019-12-03 21:53:11 +01:00
Marius Orcsik
b8b0448aff
Merge pull request #7 from go-ap/crossing_the_streams
Merging back the Activitystreams package
2019-12-03 21:12:39 +01:00
Marius Orcsik
bf3906d5fb
Added the PublicKey property from the auth package 2019-12-03 21:00:01 +01:00
Marius Orcsik
79e39d3c2b
Added the Object related Source and collection properties 2019-12-03 20:50:26 +01:00
Marius Orcsik
cd46437bf2
Moved integration tests back to their own folder 2019-12-03 20:45:26 +01:00
Marius Orcsik
882dcd90be
Made the ActivityPub named collections be aliases for OrderedCollection 2019-12-03 20:22:47 +01:00
Marius Orcsik
b3a4fef49a
Fixed the test value for last failing test 2019-12-03 20:12:47 +01:00
Marius Orcsik
e1942ec531
Fixing some tests 2019-12-03 19:59:20 +01:00
Marius Orcsik
c3a38f35e7
Holy shit! Merged the activitystreams repo
Only 3 tests failing
2019-12-03 17:23:59 +01:00
Marius Orcsik
72a9ade82d Add 'streams/' from commit 'f968addfe0e35bbee21ed1233ecacf65391e3f59'
git-subtree-dir: streams
git-subtree-mainline: 0ad2174ed0
git-subtree-split: f968addfe0
2019-12-03 16:33:20 +01:00
Marius Orcsik
f968addfe0
Modified GetID method to not return a pointer
ObjectID type has now a IsValid method
2019-12-03 16:26:43 +01:00
Marius Orcsik
23227e2552
Removed duplicated tests as the types are aliases 2019-12-03 16:26:07 +01:00
Marius Orcsik
3a58b1d8b6
Adding collection types to ToObject
Using Flatten for Object.Replies normalization
2019-12-03 16:15:10 +01:00
Marius Orcsik
1fcca5958e
Restructured the Collection,CollectionPage,OrderedCollection,OrderedCollectionPage types to be stand-alone
Moved functionality to their own files
2019-12-03 16:05:39 +01:00
Marius Orcsik
fa6ec9411c
Making the Mention type an alias for Link 2019-12-03 15:33:20 +01:00
Marius Orcsik
8b835611d5
Restructured the Activity,IntransitiveActivity,Question types to be stand-alone
Moved functionality to its own file
2019-12-03 15:33:00 +01:00
Marius Orcsik
52e8c9c266
Restructured the Tombstone object to be stand-alone
Moved functionality to its own file
2019-12-03 15:07:00 +01:00
Marius Orcsik
921185b572
Restructured the Relationship object to be stand-alone
Moved functionality to its own file
2019-12-03 13:45:06 +01:00
Marius Orcsik
fa60a7c223
Restructured the Profile object to be stand-alone
Moved functionality to its own file
2019-12-03 13:36:05 +01:00
Marius Orcsik
a24a4f1386
Some last bits of Place functionality moved to the proper place 2019-12-03 13:34:13 +01:00
Marius Orcsik
cb209424b3
Grouped object methods around the type definition 2019-12-03 13:24:10 +01:00
Marius Orcsik
fd4fc76679
Added UnmarshalJSON for Place
Changed some properties to float64 and int64 types
2019-12-03 13:23:44 +01:00
Marius Orcsik
1e4cc7c841
Restructured the Place type to be independent
Moved functionality related to it to separate file
2019-12-03 13:05:11 +01:00
Marius Orcsik
cadebc535e
Move GetType function to ActivityObject interface 2019-12-03 12:51:29 +01:00
Marius Orcsik
dbd5b1175e
Renamed LinkOrURI interface 2019-12-03 12:48:25 +01:00
Marius Orcsik
a70c8f6f6b
Use some unsafe.Pointer some specific Activity and Object types 2019-12-03 12:47:27 +01:00
Marius Orcsik
0ad2174ed0
Extending usage of OnXXX functions to cover ItemCollections
Updated activitysatreams package
2019-12-01 19:49:52 +01:00
Marius Orcsik
495abe28e0 Add more support for Item be an ItemCollection at the same time 2019-12-01 19:47:31 +01:00
Marius Orcsik
7b9328863c Make all compatible activities types be Activity and IntransitiveActivity 2019-12-01 19:36:46 +01:00
Marius Orcsik
8982b3f40a Add IsCollection function to all base objects 2019-12-01 19:35:08 +01:00
Marius Orcsik
88e9eefd40
Updated activitystreams package 2019-12-01 16:58:49 +01:00
Marius Orcsik
d82e449e14 Set type of InReplyTo as Item 2019-12-01 16:56:35 +01:00
Marius Orcsik
ffe22ebbac
Updated activitystreams package 2019-11-30 10:18:35 +01:00
Marius Orcsik
65707fee23
Updated go-ap packages 2019-11-30 10:18:34 +01:00
Marius Orcsik
c4bfc38e75 Fixing unmarshaling an Item type property to an ItemCollection if it holds an array
Adding some tests for it
2019-11-30 10:06:39 +01:00
Marius Orcsik
f333dd1786
Allow unmarshaling of properties of Item type from json arrays 2019-11-29 19:39:38 +01:00
Marius Orcsik
95f184fb4c Updated jsonld package 2019-11-24 12:56:51 +01:00