add guide to footer

This commit is contained in:
keyan 2022-10-23 10:43:39 -05:00
parent e4d150413b
commit 79af550168
3 changed files with 11 additions and 1 deletions

View File

@ -869,7 +869,7 @@ export const updateItem = async (parent, { id, data: { title, url, text, boost,
// if it's not the FAQ, not their bio, and older than 10 minutes // if it's not the FAQ, not their bio, and older than 10 minutes
const user = await models.user.findUnique({ where: { id: me.id } }) const user = await models.user.findUnique({ where: { id: me.id } })
if (![349, 76894, 78763].includes(old.id) && user.bioId !== id && Date.now() > new Date(old.createdAt).getTime() + 10 * 60000) { if (![349, 76894, 78763, 81862].includes(old.id) && user.bioId !== id && Date.now() > new Date(old.createdAt).getTime() + 10 * 60000) {
throw new UserInputError('item can no longer be editted') throw new UserInputError('item can no longer be editted')
} }

View File

@ -175,6 +175,12 @@ export default function Footer ({ noLinks }) {
</a> </a>
</Link> </Link>
<span className='mx-2 text-muted'> \ </span> <span className='mx-2 text-muted'> \ </span>
<Link href='/guide' passHref>
<a className='nav-link p-0 d-inline-flex'>
guide
</a>
</Link>
<span className='mx-2 text-muted'> \ </span>
<Link href='/story' passHref> <Link href='/story' passHref>
<a className='nav-link p-0 d-inline-flex'> <a className='nav-link p-0 d-inline-flex'>
story story

View File

@ -63,6 +63,10 @@ module.exports = withPlausibleProxy()({
source: '/changes', source: '/changes',
destination: '/items/78763' destination: '/items/78763'
}, },
{
source: '/guide',
destination: '/items/81862'
},
{ {
source: '/.well-known/lnurlp/:username', source: '/.well-known/lnurlp/:username',
destination: '/api/lnurlp/:username' destination: '/api/lnurlp/:username'