0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-04 12:08:40 +02:00

Redact the event before verifying its signature

... in the federation invite API.
This commit is contained in:
Mark Haines 2017-09-11 15:47:50 +01:00
parent 31f6c21d98
commit 5740cb3e58

View file

@ -73,7 +73,7 @@ func Invite(
// Check that the event is signed by the server sending the request.
verifyRequests := []gomatrixserverlib.VerifyJSONRequest{{
ServerName: event.Origin(),
Message: event.JSON(),
Message: event.Redact().JSON(),
AtTS: event.OriginServerTS(),
}}
verifyResults, err := keys.VerifyJSONs(verifyRequests)