From 61dbaa147e7bd18e45bba58485110a0a63af9cf0 Mon Sep 17 00:00:00 2001 From: les Date: Wed, 2 Oct 2019 21:05:15 +0200 Subject: [PATCH] minor --- server/api/controller/user.js | 4 ++-- server/emails/event/html.pug | 6 +++--- server/emails/layout.pug | 4 +--- views/feed/rss.pug | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/server/api/controller/user.js b/server/api/controller/user.js index 5c02f4f1..04ef1542 100644 --- a/server/api/controller/user.js +++ b/server/api/controller/user.js @@ -184,7 +184,7 @@ const userController = { if (!recover_code) { return res.sendStatus(400) } const user = await User.findOne({ where: { recover_code: { [Op.eq]: recover_code } } }) if (!user) { return res.sendStatus(400) } - res.sendStatus(200) + res.sendStatus(200) }, async updatePasswordWithRecoverCode (req, res) { @@ -204,7 +204,7 @@ const userController = { async current (req, res) { if (!req.user) return res.status(400).send('Not logged') const user = await User.findByPk(req.user.id, { include: { model: FedUsers, as: 'followers' } }) - res.json(user) + res.json(user) }, async getAll (req, res) { diff --git a/server/emails/event/html.pug b/server/emails/event/html.pug index 71f28eb2..f00e3f70 100644 --- a/server/emails/event/html.pug +++ b/server/emails/event/html.pug @@ -1,8 +1,8 @@ extends ../layout.pug block content h3 #{event.title} - p Dove: #{event.place.name} - #{event.place.address} - p Quando: #{datetime(event.start_datetime)} + p 📍 Dove: #{event.place.name} - #{event.place.address} + p ⏰ Quando: #{datetime(event.start_datetime)} br if event.image_path
@@ -16,6 +16,6 @@ block content #{config.baseurl}/event/#{event.id} hr if to_confirm - p Puoi confermare questo evento qui + p Puoi confermare questo evento premendo il tasto conferma a questa pagina else p Puoi eliminare queste notifiche qui diff --git a/server/emails/layout.pug b/server/emails/layout.pug index 5ff2bf28..f02b3ed4 100644 --- a/server/emails/layout.pug +++ b/server/emails/layout.pug @@ -8,6 +8,4 @@ html(lang="en") body block content hr - small #{config.title} / #{config.description} - br - #{config.baseurl} \ No newline at end of file + small #{config.title} / #{config.description} \ No newline at end of file diff --git a/views/feed/rss.pug b/views/feed/rss.pug index 52d47486..574e7414 100644 --- a/views/feed/rss.pug +++ b/views/feed/rss.pug @@ -1,10 +1,10 @@ doctype xml -rss(version='2.0') +rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom") channel + atom:link(href="#{config.baseurl}/feed/rss" rel="self" type="application/rss+xml") title #{config.title} link #{config.baseurl} description #{config.description} - language #{config.locale} each event in events item title [#{moment.unix(event.start_datetime).utc(false).format("YY-MM-DD")}] #{event.title} @#{event.place.name}