chore: Linter issues
This commit is contained in:
parent
91c70f3e9d
commit
fd96e3aa55
8 changed files with 25 additions and 26 deletions
|
@ -922,12 +922,12 @@ UserModel.prototype.import = async function (list) {
|
|||
'/' +
|
||||
encodeURIComponent(data.img)
|
||||
console.log('Grabbing', imgUrl)
|
||||
const [contentType, imgData] = await downloadImage(imgUrl)
|
||||
// Do not import the default SVG avatar
|
||||
if (contentType !== 'image/svg+xml') {
|
||||
const img = await setUserAvatar(data.ihash, [contentType, imgData], data.username)
|
||||
data.img = img
|
||||
}
|
||||
//const [contentType, imgData] = await downloadImage(imgUrl)
|
||||
//// Do not import the default SVG avatar
|
||||
//if (contentType !== 'image/svg+xml') {
|
||||
// const img = await setUserAvatar(data.ihash, [contentType, imgData], data.username)
|
||||
// data.img = img
|
||||
//}
|
||||
}
|
||||
let cloaked = await this.cloak(data)
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue