mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🐛 Fix multiple incorrect outputs in federation routes
This commit is contained in:
parent
b4b8f51a5a
commit
a603b602e6
5 changed files with 45 additions and 36 deletions
|
|
@ -268,11 +268,7 @@ export class User {
|
|||
inbox: data.inbox,
|
||||
outbox: data.outbox,
|
||||
},
|
||||
fields:
|
||||
data.fields?.map((f) => ({
|
||||
key: f.name,
|
||||
value: f.value,
|
||||
})) ?? [],
|
||||
fields: data.fields ?? [],
|
||||
updatedAt: new Date(data.created_at).toISOString(),
|
||||
instanceId: instance.id,
|
||||
avatar: data.avatar
|
||||
|
|
@ -537,10 +533,7 @@ export class User {
|
|||
avatar: urlToContentFormat(this.getAvatarUrl(config)) ?? undefined,
|
||||
header: urlToContentFormat(this.getHeaderUrl(config)) ?? undefined,
|
||||
display_name: user.displayName,
|
||||
fields: user.fields.map((f) => ({
|
||||
name: f.key,
|
||||
value: f.value,
|
||||
})),
|
||||
fields: user.fields,
|
||||
public_key: {
|
||||
actor: new URL(
|
||||
`/users/${user.id}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue