add guide to footer
This commit is contained in:
		
							parent
							
								
									e4d150413b
								
							
						
					
					
						commit
						79af550168
					
				@ -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
 | 
			
		||||
  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')
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -175,6 +175,12 @@ export default function Footer ({ noLinks }) {
 | 
			
		||||
                </a>
 | 
			
		||||
              </Link>
 | 
			
		||||
              <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>
 | 
			
		||||
                <a className='nav-link p-0 d-inline-flex'>
 | 
			
		||||
                  story
 | 
			
		||||
 | 
			
		||||
@ -63,6 +63,10 @@ module.exports = withPlausibleProxy()({
 | 
			
		||||
        source: '/changes',
 | 
			
		||||
        destination: '/items/78763'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        source: '/guide',
 | 
			
		||||
        destination: '/items/81862'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        source: '/.well-known/lnurlp/:username',
 | 
			
		||||
        destination: '/api/lnurlp/:username'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user