Я пытаюсь отправить данные изображения профиля из объекта Tweet в мой шаблон PUG. Тем не менее, он продолжает приводить к повреждению изображения.
Фрагмент из server.js
app.get('/tweet/:id', async(req, res) => {
try {
const data = await T.get('statuses/show/' + req.params.id, {});
res.render('tweet', { stweet_picture: [data.user.profile_image_url_https] });
} catch(error) {
console.log(error);
}
});
Отрывок из шаблона PUG
.tweet-container
.bird-dude-container
h3 Information
.text-container
h3
img(src=`#{stweet_picture}`)