Small bugfixes

This commit is contained in:
Nathan Byrd 2023-01-13 13:26:12 -06:00
parent 1068abca80
commit 84dde6c5c5
2 changed files with 5 additions and 3 deletions

View File

@ -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(
[

View File

@ -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);