diff --git a/packages/backend/src/remote/activitypub/resolver.ts b/packages/backend/src/remote/activitypub/resolver.ts index 4c9cce9d5..53185cd42 100644 --- a/packages/backend/src/remote/activitypub/resolver.ts +++ b/packages/backend/src/remote/activitypub/resolver.ts @@ -124,7 +124,7 @@ export default class Resolver { const {res, object} = await this.doFetch(value); - if (object.id == null) return object; + if (object.id == null) throw new Error("Object has no ID"); if (res.finalUrl === object.id) return object; if (new URL(res.finalUrl).host !== new URL(object.id).host)