mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33:09 -06:00
Make federation state request 404 when event not in the room - fixes #625
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
adaec7c8e7
commit
4030cd2900
|
|
@ -103,6 +103,10 @@ func getState(
|
||||||
return nil, resErr
|
return nil, resErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if event.RoomID() != roomID {
|
||||||
|
return nil, &util.JSONResponse{Code: http.StatusNotFound, JSON: nil}
|
||||||
|
}
|
||||||
|
|
||||||
prevEventIDs := getIDsFromEventRef(event.PrevEvents())
|
prevEventIDs := getIDsFromEventRef(event.PrevEvents())
|
||||||
authEventIDs := getIDsFromEventRef(event.AuthEvents())
|
authEventIDs := getIDsFromEventRef(event.AuthEvents())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue