raise nofollow limits
This commit is contained in:
parent
6d370aa019
commit
b995b7dd3b
|
@ -112,7 +112,8 @@ export default function ZoomableImage ({ src, srcSet, ...props }) {
|
|||
fullScreen: true,
|
||||
overflow: (
|
||||
<Dropdown.Item
|
||||
href={originalUrl} target='_blank' rel='noreferrer'
|
||||
href={originalUrl} target='_blank'
|
||||
rel={`noreferrer ${props.nofollow ? 'nofollow' : ''} noopener`}
|
||||
>
|
||||
open original
|
||||
</Dropdown.Item>)
|
||||
|
|
|
@ -74,10 +74,9 @@ export default function Item ({ item, rank, belowTitle, right, full, children, s
|
|||
</Link>
|
||||
{item.url && !image &&
|
||||
<>
|
||||
{/* eslint-disable-next-line */}
|
||||
<a
|
||||
className={styles.link} target='_blank' href={item.url}
|
||||
rel={item.sats + item.boost >= NOFOLLOW_LIMIT ? null : 'nofollow'}
|
||||
rel={`noreferrer ${item.sats + item.boost >= NOFOLLOW_LIMIT ? '' : 'nofollow'} noopener`}
|
||||
>
|
||||
{item.url.replace(/(^https?:|^)\/\//, '')}
|
||||
</a>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
export const SUBS = ['bitcoin', 'nostr', 'tech', 'meta', 'jobs']
|
||||
export const SUBS_NO_JOBS = SUBS.filter(s => s !== 'jobs')
|
||||
|
||||
export const NOFOLLOW_LIMIT = 100
|
||||
export const NOFOLLOW_LIMIT = 1000
|
||||
export const BOOST_MULT = 5000
|
||||
export const BOOST_MIN = BOOST_MULT * 5
|
||||
export const UPLOAD_SIZE_MAX = 2 * 1024 * 1024
|
||||
|
|
Loading…
Reference in New Issue