0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/federation/publicrooms: Replace use of nullary my_host().

This commit is contained in:
Jason Volk 2020-05-29 00:30:40 -07:00
parent b493b5e39c
commit 0eb4401897

View file

@ -63,7 +63,7 @@ handle_get(client &client,
"Invalid since token for this server." "Invalid since token for this server."
}; };
if(since && m::room::id(since).host() != my_host()) if(since && !my_host(m::room::id(since).host()))
throw m::BAD_REQUEST throw m::BAD_REQUEST
{ {
"Invalid since token for this server." "Invalid since token for this server."