Rename Env::imagePasteSiteUrl to Env::imageUploaderUrl.

This commit is contained in:
Mm2PL 2019-09-25 12:51:17 +02:00
parent f6c780b2e7
commit 298c013fa0
No known key found for this signature in database
GPG key ID: 1C400DA5602DE62E
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ Env::Env()
, twitchEmoteSetResolverUrl(readStringEnv( , twitchEmoteSetResolverUrl(readStringEnv(
"CHATTERINO2_TWITCH_EMOTE_SET_RESOLVER_URL", "CHATTERINO2_TWITCH_EMOTE_SET_RESOLVER_URL",
"https://braize.pajlada.com/chatterino/twitchemotes/set/%1/")) "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")) "https://i.nuuls.com/upload"))
{ {
} }

View file

@ -14,7 +14,7 @@ public:
const QString recentMessagesApiUrl; const QString recentMessagesApiUrl;
const QString linkResolverUrl; const QString linkResolverUrl;
const QString twitchEmoteSetResolverUrl; const QString twitchEmoteSetResolverUrl;
const QString imagePasteSiteUrl; const QString imageUploaderUrl;
}; };
} // namespace chatterino } // namespace chatterino

View file

@ -15,7 +15,7 @@ void uploadImageToNuuls(TypedBytes imageData, ChannelPtr channel,
ResizingTextEdit &textEdit) ResizingTextEdit &textEdit)
{ {
const char *boundary = "thisistheboudaryasd"; const char *boundary = "thisistheboudaryasd";
static QUrl url(Env::get().imagePasteSiteUrl); static QUrl url(Env::get().imageUploaderUrl);
QHttpMultiPart *payload = new QHttpMultiPart(QHttpMultiPart::FormDataType); QHttpMultiPart *payload = new QHttpMultiPart(QHttpMultiPart::FormDataType);
QHttpPart part = QHttpPart(); QHttpPart part = QHttpPart();