kopia lustrzana https://github.com/cloudflare/wildebeest
fix Object URLs in outbox
rodzic
aac4d74c8b
commit
1d7d48edb9
|
@ -1,6 +1,5 @@
|
|||
import { parseHandle } from 'wildebeest/backend/src/utils/parse'
|
||||
import { cors } from 'wildebeest/backend/src/utils/cors'
|
||||
import * as objects from 'wildebeest/backend/src/activitypub/objects'
|
||||
import type { Activity } from 'wildebeest/backend/src/activitypub/activities'
|
||||
import { getActorById } from 'wildebeest/backend/src/activitypub/actors'
|
||||
import { actorURL } from 'wildebeest/backend/src/activitypub/actors'
|
||||
|
@ -60,8 +59,8 @@ LIMIT ?2
|
|||
const properties = JSON.parse(result.properties)
|
||||
|
||||
const note: Note = {
|
||||
id: new URL(objects.uri(domain, result.id)),
|
||||
atomUri: new URL(objects.uri(domain, result.id)),
|
||||
id: new URL(result.id),
|
||||
atomUri: new URL(result.id),
|
||||
type: 'Note',
|
||||
published: new Date(result.cdate).toISOString(),
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue