Small bugfixes
This commit is contained in:
parent
1068abca80
commit
84dde6c5c5
|
@ -99,8 +99,8 @@ function getUserProfileTemplatedBody(
|
|||
defaultContentType,
|
||||
cb
|
||||
) {
|
||||
const Log = require('./logger').log;
|
||||
const Config = require('./config').get;
|
||||
const Log = require('../logger').log;
|
||||
const Config = require('../config').get;
|
||||
|
||||
waterfall(
|
||||
[
|
||||
|
|
|
@ -92,7 +92,9 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
|
|||
'application/ld+json',
|
||||
'application/json',
|
||||
];
|
||||
sendActor = accept.some(v => headerValues.includes(v));
|
||||
if (accept.some(v => headerValues.includes(v))) {
|
||||
sendActor = true;
|
||||
}
|
||||
|
||||
if (sendActor) {
|
||||
return this._selfAsActorHandler(user, req, resp);
|
||||
|
|
Loading…
Reference in New Issue