mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(federation): 🏷️ Correctly make InstanceMetadata description a string
This commit is contained in:
parent
fbb845f7f8
commit
cea0544686
|
|
@ -285,15 +285,9 @@ export class Instance extends BaseInterface<typeof Instances> {
|
||||||
return {
|
return {
|
||||||
name:
|
name:
|
||||||
metadata.metadata.nodeName || metadata.metadata.title || "",
|
metadata.metadata.nodeName || metadata.metadata.title || "",
|
||||||
description: {
|
description:
|
||||||
"text/plain": {
|
metadata.metadata.nodeDescription ||
|
||||||
content:
|
metadata.metadata.description,
|
||||||
metadata.metadata.nodeDescription ||
|
|
||||||
metadata.metadata.description ||
|
|
||||||
"",
|
|
||||||
remote: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
type: "InstanceMetadata",
|
type: "InstanceMetadata",
|
||||||
software: {
|
software: {
|
||||||
name: "Unknown ActivityPub software",
|
name: "Unknown ActivityPub software",
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,7 @@ export default apiRoute((app) =>
|
||||||
},
|
},
|
||||||
host: new URL(config.http.base_url).host,
|
host: new URL(config.http.base_url).host,
|
||||||
name: config.instance.name,
|
name: config.instance.name,
|
||||||
description: {
|
description: config.instance.description,
|
||||||
"text/plain": {
|
|
||||||
content: config.instance.description,
|
|
||||||
remote: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
public_key: {
|
public_key: {
|
||||||
key: config.instance.keys.public,
|
key: config.instance.keys.public,
|
||||||
algorithm: "ed25519",
|
algorithm: "ed25519",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue