You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(c) Is there a reason for all this duplication? Would it be a worthwhile use of time to try and refactor the library so that elements are defined once if possible to keep things DRY? (As I see it, to add sharedInbox, along with the other optional properties defined in ActivityPub §4.1 – streams, preferredUsername, proxyUrl, oauthAuthorizationEndpoint, oauthTokenEndpoint, provideClientKey, signClientKey) would require making ~four entries for each, so ~24 definitions.
(d) Given that ActivityPub is extensible, does this mean that the parser will break and need to be updated to support every possible extension statically?
In trying to declare a
sharedInbox
endpoint on an ActivityPub Actor object, I tried:I get the error _TypeError: .sharedInbox is not a function.
.sharedInbox
is undefined.I can see that it is present in the activitystreams-context package in the context.json file:
But it:
As I’m new to the library, before I go ahead and add it in those places:
(a) Is this the right way to do it (was it just not added or am I missing something?)
(b) I see that, e.g., Image is added to the graph twice. Is this the way to do it?
(c) Is there a reason for all this duplication? Would it be a worthwhile use of time to try and refactor the library so that elements are defined once if possible to keep things DRY? (As I see it, to add
sharedInbox
, along with the other optional properties defined in ActivityPub §4.1 –streams
,preferredUsername
,proxyUrl
,oauthAuthorizationEndpoint
,oauthTokenEndpoint
,provideClientKey
,signClientKey
) would require making ~four entries for each, so ~24 definitions.(d) Given that ActivityPub is extensible, does this mean that the parser will break and need to be updated to support every possible extension statically?
Thanks in advance :)
CC @evanp
The text was updated successfully, but these errors were encountered: