diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..60b7cff --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +kshare.arsenarsen.com \ No newline at end of file diff --git a/README.md b/README.md index 4e7d34b..c537f95 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ A [ShareX](https://getsharex.com/) inspired cross platform utility written with |:---:|:-----:|:--:| |[![Build Status](https://nativeci.arsenarsen.com/job/KShare/badge/icon)](https://nativeci.arsenarsen.com/job/KShare)| [![Build Status](https://nativeci.arsenarsen.com/job/KShare%20Windows%20x86_64/badge/icon)](https://nativeci.arsenarsen.com/job/KShare%20Windows%20x86_64/)| Soon | ## Screenshot -Made with KShare itself, of course :) -![](https://i.arsenarsen.com/2iphpxpah8.png) +Made with KShare itself, of course :) +![](http://i.imgur.com/ffWvCun.png) ## Usage See the [wiki](https://github.com/ArsenArsen/KShare/wiki). diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..2f7efbe --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-minimal \ No newline at end of file diff --git a/uploaders/customuploader.cpp b/uploaders/customuploader.cpp index 78fc2ce..c4377ea 100644 --- a/uploaders/customuploader.cpp +++ b/uploaders/customuploader.cpp @@ -153,9 +153,11 @@ QJsonObject recurseAndReplace(QJsonObject &body, QByteArray &data, QString conte } else if (v.isString()) { QString str = v.toString(); if (str.startsWith("/") && str.endsWith("/")) { - o.insert(s, str.replace("%image", data).replace("%contenttype", contentType)); - } - } + o.insert(s, str.mid(1, str.length() - 2).replace("%imagedata", data).replace("%contenttype", contentType)); + } else + o.insert(s, v); + } else + o.insert(s, v); } return o; }