From b4155a09cef7b616ff912ca4b4fa429c83c5a4b9 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 28 Apr 2021 16:03:33 +0300 Subject: [PATCH] disabled donations for now --- server/routes/api.js | 4 +++- server/routes/index.js | 2 ++ views/layout.pug | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/server/routes/api.js b/server/routes/api.js index c42950e..708bdd8 100644 --- a/server/routes/api.js +++ b/server/routes/api.js @@ -7,7 +7,7 @@ import wrap from '../../scripts/asyncRoute' import { Common, Facebook, Twitter, Discord, Google } from '../api/external' import * as Image from '../api/image' import * as News from '../api/news' -import { User, Payment, OAuth2 } from '../api' +import { User, OAuth2 } from '../api' const router = express.Router() const dev = process.env.NODE_ENV !== 'production' @@ -483,6 +483,7 @@ router.post('/oauth2/authorized-clients/revoke', wrap(async (req, res, next) => * ================== */ +/* router.post('/paypal/ipn', wrap(async (req, res) => { const content = req.body @@ -517,6 +518,7 @@ router.get('/donations', wrap(async (req, res) => { const contribs = await Payment.allContributions(count, mcu, timeFrame) res.jsonp(contribs) })) +*/ // 404 router.use((req, res) => { diff --git a/server/routes/index.js b/server/routes/index.js index 58ba7e9..d6a6c71 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -296,11 +296,13 @@ router.get('/user/manage/email', ensureLogin, wrap(async (req, res) => { res.render('user/email_change', { email: obfuscated, password: socialStatus.password }) })) +/* router.get('/donate', wrap(async (req, res, next) => { if (!config.donations || !config.donations.business) return next() res.render('donate', config.donations) })) +*/ /* ================= diff --git a/views/layout.pug b/views/layout.pug index 152b19f..9270b18 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -80,10 +80,8 @@ html a(href="https://lunasqu.ee" target="_blank" rel="nofollow") Evert Prants span.float-sm-right.ml-4 a(href="/docs/terms-of-service") Terms - | · + | ·  a(href="/docs/privacy-policy") Privacy - | · - a(href="/donate") Donate .d-flex.justify-content-center a.btn-social#gitlab(href="https://gitlab.icynet.eu/IcyNetwork/" rel="me" target="_blank") i.fab.fa-fw.fa-gitlab