mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[backend] Reject anonymous objects in the AP resolver
This commit is contained in:
parent
ac57c58ecf
commit
cf506d3bd9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue