refactor url
Este commit está contenido en:
3
index.js
3
index.js
@@ -71,7 +71,8 @@ xmpp.on('stanza', async stanza => {
|
||||
const buf = await imageGenerator.generateBuffer()
|
||||
if (buf.byteLength > 0 && stanza.getChild('slot')
|
||||
&& stanza.getChild('slot').getChild('put')) {
|
||||
const req = await got.put(stanza.getChild('slot').getChild('put').attrs.url, {
|
||||
const url = stanza.getChild('slot').getChild('put').attrs.url,
|
||||
req = await got.put(url, {
|
||||
body: buf
|
||||
}).catch(console.error)
|
||||
if (req && req.url && time) {
|
||||
|
||||
Referencia en una nueva incidencia
Block a user