コミットグラフ

135 コミット

作成者 SHA1 メッセージ 日付
Cory Slep 9417306aa3 Outline the needed federating side effects tests. 2019-02-24 13:05:00 +01:00
Cory Slep 5f6b12a76d More unit tests and bug fixes. 2019-02-23 18:42:40 +01:00
Cory Slep 36a38b74b0 Increase side effect actor test coverage.
Introduce DefaultCallback to the protocol interfaces.
2019-02-20 21:31:11 +01:00
Cory Slep 1e5f5f9c86 Update authn and authz functions to have intuitive return values 2019-02-19 20:40:26 +01:00
Cory Slep b41491e2c2 Add missing Unlock calls. 2019-02-19 20:33:42 +01:00
Cory Slep 82851801ed Some tests for the side_effect_actor.go 2019-02-19 20:33:22 +01:00
Cory Slep 71b853d708 Update base actor tests to accurate reflect interfaces. 2019-02-19 20:07:26 +01:00
Cory Slep 52bc5fb9a5 Add tests for the base actor.
Removed old pub tests.
2019-02-16 20:30:18 +01:00
Cory Slep dc16296d74 Remove TODO that is now documented as an issue. 2019-02-15 23:56:49 +01:00
Cory Slep 674fa0245d Use AppendType instead of custom resolver 2019-02-15 23:54:26 +01:00
Cory Slep 412c6737c3 Generate constants for type and property names 2019-02-15 23:11:08 +01:00
Cory Slep 272d7239f3 Generate generic ToType function. 2019-02-15 22:47:59 +01:00
Cory Slep 1227ec9a5a Change GetName to GetTypeName 2019-02-15 22:15:25 +01:00
Cory Slep c4a7b0524e Always acquire db lock before calling Owns 2019-02-15 22:04:08 +01:00
Cory Slep 2099e89851 Address several TODOs in side_effect_actor 2019-02-15 21:59:02 +01:00
Cory Slep b625914c1a Send BadRequest if library can't handle the type 2019-02-15 21:45:48 +01:00
Cory Slep 7beac61f97 Address IRI dereferencing in util 2019-02-15 21:42:56 +01:00
Cory Slep 6ead50c643 Address TODOs in federating_wrapped_callbacks 2019-02-15 21:33:48 +01:00
Cory Slep cc83b751a1 Update interface definitions and wrapper improvements.
Wrapping default behavior can now be overridden.
2019-02-15 21:03:43 +01:00
Cory Slep bd8220a56c Update comments 2019-02-15 18:34:58 +01:00
Cory Slep 8efdb62ad9 Port ActivityStreams http handler function.
Also removed the 'old' pub code.

Moved the old tests back into the new pub, which means no tests pass
because the test build fails. So test porting needs to happen.
2019-02-14 22:28:46 +01:00
Cory Slep d3b0afef5e Finish porting the core of pub. 2019-02-14 21:51:57 +01:00
Cory Slep 0f7dce6839 Begin porting C2S side effect behaviors. 2019-02-13 23:56:36 +01:00
Cory Slep 1b7cec220b Get most federating callbacks ported. 2019-02-13 22:37:29 +01:00
Cory Slep c194883a93 More pub progress.
- Constructors for various Actor types.
- Continue porting the default implementations.
- Rethinking life.
2019-02-12 22:43:01 +01:00
Cory Slep 16af404462 First pass converting to new pub library.
Still a lot to do:
- Delete old deliverer folder
- Revisit handler funcs
- Constructors
- Side effects for the wrapped callback functions
- Any other TODOs
2019-02-12 00:16:33 +01:00
Cory Slep 8fa479da40 Move `streams` to `streams_old` in preparation for the new vocabulary. 2019-01-29 22:16:19 +01:00
Cory Slep 806c037e3b Add note to self to check Follow edge case 2018-09-01 20:03:40 +02:00
Cory Slep 83277d57c9 Announce activities now add to shares collections on objects. 2018-08-21 20:49:24 +02:00
Cory Slep 1252727ca8 Add tests for Callbacker extensions 2018-08-20 23:11:33 +02:00
Cory Slep 1c057922ca Fix intransitive activity generated code in vocab.
The sub-types of Intransitive Activity (Arrive, etc) would not satisfy
the vocab.IntransitiveActivityType interface, due to not accounting for
the parent WithoutProperties definition.

This fixes that code generation, so that all Activity subtypes will be
able to be properly converted to vocab.ActivityType or
vocab.IntransitiveActivityType.

Updated the PostOutbox code path to properly handle this distinction
when receiving a C2S IntransitiveActivity.
2018-08-20 23:08:02 +02:00
Cory Slep 797b2f79a8 Support other activity types 2018-08-20 00:35:31 +02:00
Cory Slep 387ed4a775 Fix body delivery bytes being incorrectly copied 2018-08-19 23:25:14 +02:00
Cory Slep 2f2858f92b Include more links to go-fed.org and official reports 2018-08-19 18:39:54 +02:00
Cory Slep 46d55732d5 Use minimum sized types for enumerated values 2018-08-19 18:31:45 +02:00
Cory Slep 8b0590a0cd Correctly test for root cause in issue 75. 2018-08-19 18:03:56 +02:00
Cory Slep 3740d4a418 Remove TODO 2018-08-19 11:06:52 +02:00
Cory Slep 452d6f1af7 Add unit test for issue 75: C2S not forwarding 2018-08-19 01:05:02 +02:00
Cory Slep f8b24eef88 Use OrderedCollection by default for collections.
The 'liked', 'likes', 'followers', and 'following' collections now
default to the 'OrderedCollection' type instead of throwing an error if
the client application does not supply an IRI, 'Collection', or
'OrderedCollection' type on the actor or object.
2018-08-04 13:53:33 +02:00
Cory Slep be4644fbca Examine IRI when origin checking Update/Delete
Before we just always threw an error. Also update tests to check for
both cases.
2018-08-03 22:54:12 +02:00
Cory Slep f82653f709 Don't do an Activity's side effects more than once
If a federated Activity has been seen before, skip handling its side
effects.
2018-08-03 22:30:53 +02:00
Cory Slep 8fa0f2395c Add Like activities to the likes collection.
Previously, it was incorrectly adding the actors to the likes collection.
2018-08-02 22:29:03 +02:00
Cory Slep 107468d8e9 Fix GetInbox failure due to unavailable messages.
When deduplicating IRIs in a user's inbox, the library tries to
dereference the IRI to... obtain the ID. I must have added this when I
had no idea what I was doing. Oh my god, everyone's going to know I am
dumb! Quick, don't read this commit message, I'll just finish typing
this sentence over here.

Well, it's fixed now.
2018-08-01 23:30:20 +02:00
Cory Slep 10e099bd8a Remove unused test method from previous interface. 2018-08-01 23:22:46 +02:00
Cory Slep b0c125a7ba Improve media type detection for ActivityPub types 2018-08-01 23:18:41 +02:00
Cory Slep 1ed478582e To immediately be deleted.
I don't need this level of detail for headers. This is beyond overkill
for content negotiation. Just do something simpler.
2018-08-01 19:27:06 +02:00
21stio 7b788cf596
Update README.md
added syntax highlighting
2018-06-25 09:43:15 +02:00
Cory Slep fb16747c4e Migrate Typer and type-detection functions to vocab
This helps ensure that the code to detect specific ActivityStream types
continues to live in the code-generation algorithms, reducing
maintenance burdens.
2018-06-12 23:29:30 +02:00
Cory Slep 1f9eeafca8 Serve tombstone with HTTP status Gone 2018-06-09 00:03:45 +02:00
Cory Slep 2764b67c7e Remove bto & bcc before serving ActivityStream object 2018-06-08 23:45:25 +02:00