Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOISSUE: api.paste.ee => api.pastee.dev For Log Upload #5458

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions launcher/net/PasteUpload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bool PasteUpload::validateText()

void PasteUpload::executeTask()
{
QNetworkRequest request(QUrl("https://api.paste.ee/v1/pastes"));
QNetworkRequest request(QUrl("https://api.pastee.dev/v1/pastes"));
request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT_UNCACHED);

request.setRawHeader("Content-Type", "application/json");
Expand All @@ -45,7 +45,7 @@ void PasteUpload::executeTask()
QNetworkReply *rep = APPLICATION->network()->post(request, m_jsonContent);

m_reply = std::shared_ptr<QNetworkReply>(rep);
setStatus(tr("Uploading to paste.ee"));
setStatus(tr("Uploading to pastee.dev"));
connect(rep, &QNetworkReply::uploadProgress, this, &Task::setProgress);
connect(rep, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(downloadError(QNetworkReply::NetworkError)));
connect(rep, SIGNAL(finished()), this, SLOT(downloadFinished()));
Expand Down Expand Up @@ -74,7 +74,7 @@ void PasteUpload::downloadFinished()
}
if (!parseResult(doc))
{
emitFailed(tr("paste.ee returned an error. Please consult the logs for more information"));
emitFailed(tr("pastee.dev returned an error. Please consult the logs for more information"));
return;
}
}
Expand All @@ -94,7 +94,7 @@ bool PasteUpload::parseResult(QJsonDocument doc)
auto status = object.value("success").toBool();
if (!status)
{
qCritical() << "paste.ee reported error:" << QString(object.value("error").toString());
qCritical() << "pastee.dev reported error:" << QString(object.value("error").toString());
return false;
}
m_pasteLink = object.value("link").toString();
Expand Down