mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Rename Env::imagePasteSiteUrl
to Env::imageUploaderUrl
.
This commit is contained in:
parent
f6c780b2e7
commit
298c013fa0
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ Env::Env()
|
|||
, twitchEmoteSetResolverUrl(readStringEnv(
|
||||
"CHATTERINO2_TWITCH_EMOTE_SET_RESOLVER_URL",
|
||||
"https://braize.pajlada.com/chatterino/twitchemotes/set/%1/"))
|
||||
, imagePasteSiteUrl(readStringEnv("CHATTERINO2_IMAGE_PASTE_SITE_URL",
|
||||
, imageUploaderUrl(readStringEnv("CHATTERINO2_IMAGE_PASTE_SITE_URL",
|
||||
"https://i.nuuls.com/upload"))
|
||||
{
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ public:
|
|||
const QString recentMessagesApiUrl;
|
||||
const QString linkResolverUrl;
|
||||
const QString twitchEmoteSetResolverUrl;
|
||||
const QString imagePasteSiteUrl;
|
||||
const QString imageUploaderUrl;
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
|
|
|
@ -15,7 +15,7 @@ void uploadImageToNuuls(TypedBytes imageData, ChannelPtr channel,
|
|||
ResizingTextEdit &textEdit)
|
||||
{
|
||||
const char *boundary = "thisistheboudaryasd";
|
||||
static QUrl url(Env::get().imagePasteSiteUrl);
|
||||
static QUrl url(Env::get().imageUploaderUrl);
|
||||
|
||||
QHttpMultiPart *payload = new QHttpMultiPart(QHttpMultiPart::FormDataType);
|
||||
QHttpPart part = QHttpPart();
|
||||
|
|
Loading…
Reference in a new issue