Commit 113e0bfa authored by nanahira's avatar nanahira

fix double encode

parent 33487236
......@@ -191,7 +191,10 @@ export default class PicsContainer
async getSegment(url: string, bot?: Bot) {
try {
if (this.config.useAssets && this.assets) {
const uploadedUrl = await this.assets.upload(url, url.split('/').pop());
const uploadedUrl = await this.assets.upload(
url,
decodeURIComponent(url.split('/').pop()),
);
url = uploadedUrl;
} else if (this.config.useBase64) {
const buf = await this._http.get(url, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment