add changelog to footer
This commit is contained in:
parent
99e5468b07
commit
1bcfb787a6
|
@ -986,7 +986,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 (old.id !== 349 && user.bioId !== id && Date.now() > new Date(old.createdAt).getTime() + 10 * 60000) {
|
||||
if (![349, 76894, 78763].includes(old.id) && user.bioId !== id && Date.now() > new Date(old.createdAt).getTime() + 10 * 60000) {
|
||||
throw new UserInputError('item can no longer be editted')
|
||||
}
|
||||
|
||||
|
|
|
@ -163,6 +163,10 @@ export default function Footer ({ noLinks }) {
|
|||
chat
|
||||
</div>
|
||||
</OverlayTrigger>
|
||||
<span className='mx-2 text-muted'> \ </span>
|
||||
<a href='/rss' className='nav-link p-0 d-inline-flex' target='_blank'>
|
||||
rss
|
||||
</a>
|
||||
</div>
|
||||
<div className='mb-2' style={{ fontWeight: 500 }}>
|
||||
<Link href='/faq' passHref>
|
||||
|
@ -177,13 +181,17 @@ export default function Footer ({ noLinks }) {
|
|||
</a>
|
||||
</Link>
|
||||
<span className='mx-2 text-muted'> \ </span>
|
||||
<a href='/privacy' className='nav-link p-0 d-inline-flex' target='_blank'>
|
||||
privacy
|
||||
</a>
|
||||
<Link href='/changes' passHref>
|
||||
<a className='nav-link p-0 d-inline-flex'>
|
||||
changes
|
||||
</a>
|
||||
</Link>
|
||||
<span className='mx-2 text-muted'> \ </span>
|
||||
<a href='/rss' className='nav-link p-0 d-inline-flex' target='_blank'>
|
||||
rss
|
||||
</a>
|
||||
<Link href='/privacy' passHref>
|
||||
<a className='nav-link p-0 d-inline-flex'>
|
||||
privacy
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</>}
|
||||
{data &&
|
||||
|
|
|
@ -59,6 +59,10 @@ module.exports = withPlausibleProxy()({
|
|||
source: '/privacy',
|
||||
destination: '/items/76894'
|
||||
},
|
||||
{
|
||||
source: '/changes',
|
||||
destination: '/items/78763'
|
||||
},
|
||||
{
|
||||
source: '/.well-known/lnurlp/:username',
|
||||
destination: '/api/lnurlp/:username'
|
||||
|
|
Loading…
Reference in New Issue