0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd:Ⓜ️:rooms::summary: Use server name as fetch target.

This commit is contained in:
Jason Volk 2019-09-13 18:10:49 -07:00
parent f8e3030819
commit a2ffebeb06
3 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,7 @@ struct ircd::m::rooms::summary::fetch
std::string next_batch;
// request
fetch(const net::hostport &hp,
fetch(const string_view &origin,
const string_view &since = {},
const size_t &limit = 64);

View file

@ -7760,7 +7760,7 @@ console_cmd__rooms__fetch(opt &out, const string_view &line)
"server", "since"
}};
const net::hostport server
const string_view &server
{
param.at("server")
};

View file

@ -71,7 +71,7 @@ ircd::m::rooms::summary::fetch::limit
//
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::fetch::fetch(const net::hostport &hp,
ircd::m::rooms::summary::fetch::fetch(const string_view &origin,
const string_view &since,
const size_t &limit)
{
@ -88,7 +88,7 @@ ircd::m::rooms::summary::fetch::fetch(const net::hostport &hp,
m::v1::public_rooms request
{
hp, buf, std::move(opts)
origin, buf, std::move(opts)
};
const auto code