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
|
// 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 (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')
|
throw new UserInputError('item can no longer be editted')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -163,6 +163,10 @@ export default function Footer ({ noLinks }) {
|
||||||
chat
|
chat
|
||||||
</div>
|
</div>
|
||||||
</OverlayTrigger>
|
</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>
|
||||||
<div className='mb-2' style={{ fontWeight: 500 }}>
|
<div className='mb-2' style={{ fontWeight: 500 }}>
|
||||||
<Link href='/faq' passHref>
|
<Link href='/faq' passHref>
|
||||||
|
@ -177,13 +181,17 @@ export default function Footer ({ noLinks }) {
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<span className='mx-2 text-muted'> \ </span>
|
<span className='mx-2 text-muted'> \ </span>
|
||||||
<a href='/privacy' className='nav-link p-0 d-inline-flex' target='_blank'>
|
<Link href='/changes' passHref>
|
||||||
|
<a className='nav-link p-0 d-inline-flex'>
|
||||||
|
changes
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
<span className='mx-2 text-muted'> \ </span>
|
||||||
|
<Link href='/privacy' passHref>
|
||||||
|
<a className='nav-link p-0 d-inline-flex'>
|
||||||
privacy
|
privacy
|
||||||
</a>
|
</a>
|
||||||
<span className='mx-2 text-muted'> \ </span>
|
</Link>
|
||||||
<a href='/rss' className='nav-link p-0 d-inline-flex' target='_blank'>
|
|
||||||
rss
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</>}
|
</>}
|
||||||
{data &&
|
{data &&
|
||||||
|
|
|
@ -59,6 +59,10 @@ module.exports = withPlausibleProxy()({
|
||||||
source: '/privacy',
|
source: '/privacy',
|
||||||
destination: '/items/76894'
|
destination: '/items/76894'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
source: '/changes',
|
||||||
|
destination: '/items/78763'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
source: '/.well-known/lnurlp/:username',
|
source: '/.well-known/lnurlp/:username',
|
||||||
destination: '/api/lnurlp/:username'
|
destination: '/api/lnurlp/:username'
|
||||||
|
|
Loading…
Reference in New Issue