Add account_id and list_id to list of parameters to replace in URIs.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tastytea 2020-01-14 22:50:14 +01:00
parent 0d8caf93e2
commit 59a9747c06
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -353,8 +353,8 @@ bool CURLWrapper::replace_parameter_in_uri(string &uri,
{ {
static constexpr array replace static constexpr array replace
{ {
"id", "nickname", "nickname_or_id", "id", "nickname", "nickname_or_id", "account_id",
"hashtag", "permission_group" "list_id", "hashtag", "permission_group"
}; };
if (any_of(replace.begin(), replace.end(), if (any_of(replace.begin(), replace.end(),
[&parameter](const auto &s) { return s == parameter.first; })) [&parameter](const auto &s) { return s == parameter.first; }))