mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-05 12:55:58 +02:00
fix: update proceedOnActivityPub middleware to handle how Mastodon doesn't send the 'Accepts' header
This commit is contained in:
@@ -101,7 +101,7 @@ Controller.getInbox = async (req, res) => {
|
||||
};
|
||||
|
||||
Controller.postInbox = async (req, res) => {
|
||||
// Note: internal-only, hence no exposure via src/api
|
||||
// Note: underlying methods are internal use only, hence no exposure via src/api
|
||||
switch (req.body.type) {
|
||||
case 'Follow': {
|
||||
await activitypub.inbox.follow(req.body.actor.name, req.body.object.name);
|
||||
|
||||
Reference in New Issue
Block a user