Fix a dumb typo
This commit is contained in:
parent
27da2bb108
commit
834dfd693f
|
@ -178,11 +178,11 @@ exports.getModule = class ActivityPubScannerTosser extends MessageScanTossModule
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
return callback(null, activity, fromUser);
|
return callback(null, activity, fromUser, note);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
(activity, fromUser, callback) => {
|
(activity, fromUser, note, callback) => {
|
||||||
Collection.addOutboxItem(
|
Collection.addOutboxItem(
|
||||||
fromUser,
|
fromUser,
|
||||||
activity,
|
activity,
|
||||||
|
@ -192,7 +192,7 @@ exports.getModule = class ActivityPubScannerTosser extends MessageScanTossModule
|
||||||
(err, localId) => {
|
(err, localId) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
this.log.debug(
|
this.log.debug(
|
||||||
{ localId, activityId: activity.id },
|
{ localId, activityId: activity.id, noteId: note.id },
|
||||||
'Note Activity persisted to "outbox" collection"'
|
'Note Activity persisted to "outbox" collection"'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,7 +326,7 @@ exports.getModule = class WebServerModule extends ServerModule {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ok(resp, body = '', headers = { 'Content-Type:': 'text/html' }) {
|
ok(resp, body = '', headers = { 'Content-Type': 'text/html' }) {
|
||||||
if (body && !headers['Content-Length']) {
|
if (body && !headers['Content-Length']) {
|
||||||
headers['Content-Length'] = Buffer(body).length;
|
headers['Content-Length'] = Buffer(body).length;
|
||||||
}
|
}
|
||||||
|
@ -334,12 +334,12 @@ exports.getModule = class WebServerModule extends ServerModule {
|
||||||
return resp.end(body);
|
return resp.end(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
created(resp, body = '', headers = { 'Content-Type:': 'text/html' }) {
|
created(resp, body = '', headers = { 'Content-Type': 'text/html' }) {
|
||||||
resp.writeHead(201, 'Created', body ? headers : null);
|
resp.writeHead(201, 'Created', body ? headers : null);
|
||||||
return resp.end(body);
|
return resp.end(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
accepted(resp, body = '', headers = { 'Content-Type:': 'text/html' }) {
|
accepted(resp, body = '', headers = { 'Content-Type': 'text/html' }) {
|
||||||
resp.writeHead(202, 'Accepted', body ? headers : null);
|
resp.writeHead(202, 'Accepted', body ? headers : null);
|
||||||
return resp.end(body);
|
return resp.end(body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue