Closed ghost closed 5 years ago
This turned out to be an implementation bug rather than a library bug. I had the deliverer interface wrongly configured. I forgot to set the variable maxDeliveryDepth
which gave it a default value of 0. The line https://github.com/go-fed/activity/blob/be4644fbcaebd00895e7fff859c97ce7df3c66c0/pub/internal.go#L777 then ended up filtering out the CC'd actors as a result. Setting a value for maxDeliveryDepth
fixes this issue for me.
Leaving the issue open for any warnings/errors that may want to be added to prevent others from facing this issue.
I think in the next major version I will have the Pubber
creation functions return an error in this case.
@cjslep is this something you'd like any help with? :smiley:
Hi @elmaria, I would be happy for the help!
I just created a dev
branch, let's use it until v1 is ready to be merged to master
.
Great, thanks! I'll check it out when I get a chance :blush:
Hi @elmaria if you are still interested in helping out, I apologize for the confusion but I now have a v1.0.0
branch I plan to use for all of the v1 development without bothering master
.
If you're no longer interested, no worries!
Hey!
Sorry I've been pretty busy recently so don't have the time, but I'm definitely still interested in the project so I'll stick with watching for now 😊
On Sat, Jan 26, 2019 at 9:45 PM Cory J Slep notifications@github.com wrote:
Hi @elmaria https://github.com/elmaria if you are still interested in helping out, I apologize for the confusion but I now have a v1.0.0 branch I plan to use for all of the v1 development without bothering master.
If you're no longer interested, no worries!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/go-fed/activity/issues/75#issuecomment-457868536, or mute the thread https://github.com/notifications/unsubscribe-auth/ArUvgMh9iNBuMKyC5C2bkih3OIvkQo21ks5vHMxegaJpZM4V2IhP .
Note that in the latest port for v1
, it won't be possible to misconfigure like what happened here. I don't think the constructors are likely to change at this point, so I am closing this issue.
I'm trying to create a document posted by James (port 8001) that will be received by Jess (port 8000).
I post the following to James' outbox.
This triggers C2S on James' server:
The server wraps the object in a Create Activity for us, and sets the document:
Callbacker is called:
James' outbox is set with the Create activity:
Then some more things happen:
All is well on the C2S side. James has a copy of the document on his server. However, Jess never received the document in her inbox.
James' server should look up Jess' ActivityStreams actor object, find her inbox endpoint, and POST his document to her inbox.