1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Implement remote interaction

This commit is contained in:
Chocobozzz 2021-01-14 14:13:23 +01:00 committed by Chocobozzz
parent b0a9743af0
commit d43c6b1ffc
14 changed files with 190 additions and 30 deletions

View file

@ -1,5 +1,6 @@
import * as cors from 'cors'
import * as express from 'express'
import { WEBSERVER } from '@server/initializers/constants'
import { asyncMiddleware } from '../middlewares'
import { webfingerValidator } from '../middlewares/validators'
@ -31,6 +32,10 @@ function webfingerController (req: express.Request, res: express.Response) {
rel: 'self',
type: 'application/activity+json',
href: actor.url
},
{
rel: 'http://ostatus.org/schema/1.0/subscribe',
template: WEBSERVER.URL + '/remote-interaction?uri={uri}'
}
]
}