mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/federation/publicrooms: Replace use of nullary my_host().
This commit is contained in:
parent
b493b5e39c
commit
0eb4401897
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ handle_get(client &client,
|
|||
"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
|
||||
{
|
||||
"Invalid since token for this server."
|
||||
|
|
Loading…
Reference in a new issue