diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-14 14:13:23 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-15 10:49:10 +0100 |
commit | d43c6b1ffc5e6c895f9e9f9de6625f17a9755c20 (patch) | |
tree | 6bdcbe9893574e0b5a41c4854c7f986f346ba761 /server/controllers/webfinger.ts | |
parent | b0a9743af0273835cdf594431a774c0f7d46b539 (diff) | |
download | PeerTube-d43c6b1ffc5e6c895f9e9f9de6625f17a9755c20.tar.gz PeerTube-d43c6b1ffc5e6c895f9e9f9de6625f17a9755c20.tar.zst PeerTube-d43c6b1ffc5e6c895f9e9f9de6625f17a9755c20.zip |
Implement remote interaction
Diffstat (limited to 'server/controllers/webfinger.ts')
-rw-r--r-- | server/controllers/webfinger.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/controllers/webfinger.ts b/server/controllers/webfinger.ts index 5c308d9ad..885e4498f 100644 --- a/server/controllers/webfinger.ts +++ b/server/controllers/webfinger.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as cors from 'cors' | 1 | import * as cors from 'cors' |
2 | import * as express from 'express' | 2 | import * as express from 'express' |
3 | import { WEBSERVER } from '@server/initializers/constants' | ||
3 | import { asyncMiddleware } from '../middlewares' | 4 | import { asyncMiddleware } from '../middlewares' |
4 | import { webfingerValidator } from '../middlewares/validators' | 5 | import { webfingerValidator } from '../middlewares/validators' |
5 | 6 | ||
@@ -31,6 +32,10 @@ function webfingerController (req: express.Request, res: express.Response) { | |||
31 | rel: 'self', | 32 | rel: 'self', |
32 | type: 'application/activity+json', | 33 | type: 'application/activity+json', |
33 | href: actor.url | 34 | href: actor.url |
35 | }, | ||
36 | { | ||
37 | rel: 'http://ostatus.org/schema/1.0/subscribe', | ||
38 | template: WEBSERVER.URL + '/remote-interaction?uri={uri}' | ||
34 | } | 39 | } |
35 | ] | 40 | ] |
36 | } | 41 | } |