Merge branch '459-activitypub-integration' of ssh://numinibsd/git/base/enigma-bbs into 459-activitypub-integration
This commit is contained in:
commit
33dca44286
|
@ -216,7 +216,7 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
_getAssociatedActors(objectActorId, signatureActorId, cb) {
|
_getAssociatedActors(objectActorId, signatureActorId, cb) {
|
||||||
signatureActorId = async.waterfall(
|
async.waterfall(
|
||||||
[
|
[
|
||||||
callback => {
|
callback => {
|
||||||
Actor.fromId(objectActorId, (err, objectActor) => {
|
Actor.fromId(objectActorId, (err, objectActor) => {
|
||||||
|
@ -268,7 +268,10 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
|
||||||
getActorId(activity),
|
getActorId(activity),
|
||||||
signature.keyId.split('#', 1)[0], // trim #main-key
|
signature.keyId.split('#', 1)[0], // trim #main-key
|
||||||
(err, remoteActor, signatureActor) => {
|
(err, remoteActor, signatureActor) => {
|
||||||
//Actor.fromId(getActorId(activity), (err, remoteActor) => {
|
if (err) {
|
||||||
|
return this.webServer.accept(resp);
|
||||||
|
}
|
||||||
|
|
||||||
// validate sig up front
|
// validate sig up front
|
||||||
const httpSigValidated =
|
const httpSigValidated =
|
||||||
remoteActor &&
|
remoteActor &&
|
||||||
|
|
Loading…
Reference in New Issue