diff --git a/inc/teddit_api/handleUser.js b/inc/teddit_api/handleUser.js
index 259c731..110f52f 100644
--- a/inc/teddit_api/handleUser.js
+++ b/inc/teddit_api/handleUser.js
@@ -42,14 +42,24 @@ module.exports = function() {
if(kind === 't3') {
let s = await downloadAndSave(post.thumbnail, 'thumb_')
let thumbnail = ''
- if(s !== 'self') {
+ let enclosure = ''
+ if(s !== 'self' && s != '') {
let img = `${protocol}://${config.domain}${s}`
thumbnail = `${img}`
+
+ let mime = ''
+ let ext = s.split('.').pop()
+ if(ext === 'png')
+ mime = 'image/png'
+ else
+ mime = 'image/jpeg'
+ enclosure = ``
}
let append_desc_html = `
[comments]`
t3_elements = `
${thumbnail}
+ ${enclosure}
`
}