mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-27 14:28:08 +09:00
[backend] Reject anonymous objects in the AP resolver
This commit is contained in:
parent
ac57c58ecf
commit
cf506d3bd9
@ -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 New Issue
Block a user