diff --git a/core/scanner_tossers/activitypub.js b/core/scanner_tossers/activitypub.js index 9fd896fb..8655dcdc 100644 --- a/core/scanner_tossers/activitypub.js +++ b/core/scanner_tossers/activitypub.js @@ -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"' ); } diff --git a/core/servers/content/web.js b/core/servers/content/web.js index 4c3a551c..92a38dbb 100644 --- a/core/servers/content/web.js +++ b/core/servers/content/web.js @@ -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); }