disabled donations for now
This commit is contained in:
parent
089cba7d0d
commit
b4155a09ce
@ -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) => {
|
||||
|
@ -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)
|
||||
}))
|
||||
*/
|
||||
|
||||
/*
|
||||
=================
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user