mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-18 12:23:09 -06:00
Return the requested events in client event format
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
ee78aaf246
commit
49c0478e6e
|
|
@ -117,7 +117,7 @@ func GetEvent(
|
||||||
if allowed {
|
if allowed {
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusOK,
|
Code: http.StatusOK,
|
||||||
JSON: r.requestedEvent,
|
JSON: gomatrixserverlib.ToClientEvent(r.requestedEvent, gomatrixserverlib.FormatAll),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue