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