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:
parent
b0a9743af0
commit
d43c6b1ffc
14 changed files with 190 additions and 30 deletions
|
@ -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}'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue