mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 01:46:43 -06:00
enhance nodeinfo by prpoagate the standart keys for homepage and repository (#11830)
This commit is contained in:
parent
efa66ae89a
commit
cf7c6558ae
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ import type { FastifyInstance, FastifyPluginOptions } from 'fastify';
|
||||||
|
|
||||||
const nodeinfo2_1path = '/nodeinfo/2.1';
|
const nodeinfo2_1path = '/nodeinfo/2.1';
|
||||||
const nodeinfo2_0path = '/nodeinfo/2.0';
|
const nodeinfo2_0path = '/nodeinfo/2.0';
|
||||||
|
const nodeinfo_homepage = 'https://misskey-hub.net';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class NodeinfoServerService {
|
export class NodeinfoServerService {
|
||||||
|
@ -78,6 +79,8 @@ export class NodeinfoServerService {
|
||||||
software: {
|
software: {
|
||||||
name: 'misskey',
|
name: 'misskey',
|
||||||
version: this.config.version,
|
version: this.config.version,
|
||||||
|
homepage: nodeinfo_homepage,
|
||||||
|
repository: meta.repositoryUrl,
|
||||||
},
|
},
|
||||||
protocols: ['activitypub'],
|
protocols: ['activitypub'],
|
||||||
services: {
|
services: {
|
||||||
|
|
Loading…
Reference in a new issue