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 {
|
||||
name:
|
||||
metadata.metadata.nodeName || metadata.metadata.title || "",
|
||||
description: {
|
||||
"text/plain": {
|
||||
content:
|
||||
description:
|
||||
metadata.metadata.nodeDescription ||
|
||||
metadata.metadata.description ||
|
||||
"",
|
||||
remote: false,
|
||||
},
|
||||
},
|
||||
metadata.metadata.description,
|
||||
type: "InstanceMetadata",
|
||||
software: {
|
||||
name: "Unknown ActivityPub software",
|
||||
|
|
|
|||
|
|
@ -26,12 +26,7 @@ export default apiRoute((app) =>
|
|||
},
|
||||
host: new URL(config.http.base_url).host,
|
||||
name: config.instance.name,
|
||||
description: {
|
||||
"text/plain": {
|
||||
content: config.instance.description,
|
||||
remote: false,
|
||||
},
|
||||
},
|
||||
description: config.instance.description,
|
||||
public_key: {
|
||||
key: config.instance.keys.public,
|
||||
algorithm: "ed25519",
|
||||
|
|
|
|||
Loading…
Reference in a new issue