X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fwebfinger.ts;h=885e4498f069c02df78f0114235b0339487d3fd3;hb=5d43dae3699d088698560851cb6f35f3dbc70c69;hp=5c308d9ad1f0b8a8dcce864e6a4121a830ff7110;hpb=610d0be13b3d01f653ef269271dd667a57c85ef2;p=github%2FChocobozzz%2FPeerTube.git 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 @@ 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}' } ] }