Commit e1286ce6 authored by nanahira's avatar nanahira

fix

parent 2de17439
......@@ -38,7 +38,7 @@ const https_server = https.createServer(https_options, (request, response) => {
} else {
const real_user = body.user.username;
var real_username = encodeURIComponent(real_user);
if (real_user.match(/[a-z0-9]{20}/)) || (real_user.match(/[0-9]{1,6}/)) { //random username
if (real_user.match(/[a-z0-9]{20}/) || real_user.match(/[0-9]{1,6}/)) { //random username
real_username = encodeURIComponent(body.user.name);
}
request_avatar(response, real_username);
......
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