mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Avoid making retried requests to dead followers
This commit is contained in:
parent
9a8cbd8278
commit
6502c3d43e
7 changed files with 44 additions and 3 deletions
|
@ -35,7 +35,6 @@ async function checkSignature (req: Request, res: Response, next: NextFunction)
|
|||
function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) {
|
||||
return (req: Request, res: Response, next: NextFunction) => {
|
||||
const accepted = req.accepts(ACCEPT_HEADERS)
|
||||
console.log(accepted)
|
||||
if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) {
|
||||
return next()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue