Fix a dumb typo

This commit is contained in:
Bryan Ashby 2023-02-05 21:17:57 -07:00
parent 27da2bb108
commit 834dfd693f
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
2 changed files with 6 additions and 6 deletions

View File

@ -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(
fromUser,
activity,
@ -192,7 +192,7 @@ exports.getModule = class ActivityPubScannerTosser extends MessageScanTossModule
(err, localId) => {
if (!err) {
this.log.debug(
{ localId, activityId: activity.id },
{ localId, activityId: activity.id, noteId: note.id },
'Note Activity persisted to "outbox" collection"'
);
}

View File

@ -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']) {
headers['Content-Length'] = Buffer(body).length;
}
@ -334,12 +334,12 @@ exports.getModule = class WebServerModule extends ServerModule {
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);
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);
return resp.end(body);
}