change hardcoded shortener domain name

This commit is contained in:
Slavasil 2025-01-10 13:18:35 +00:00
parent d4595305b4
commit 057ccada5e

View File

@ -189,7 +189,7 @@ bool cmd::shorten_link(std::string link, context *ctx, std::function<void(std::s
return false; return false;
} }
char *escapedParam = curl_easy_escape(req, link.data(), link.size()); char *escapedParam = curl_easy_escape(req, link.data(), link.size());
std::string url("https://slavasil.ru/create?url="); std::string url("https://xurl.pw/create?url=");
url += escapedParam; url += escapedParam;
curl_free(escapedParam); curl_free(escapedParam);
curl_easy_setopt(req, CURLOPT_URL, url.c_str()); curl_easy_setopt(req, CURLOPT_URL, url.c_str());