diff --git a/components/image.js b/components/image.js index 70e987ad..b440dc06 100644 --- a/components/image.js +++ b/components/image.js @@ -112,7 +112,8 @@ export default function ZoomableImage ({ src, srcSet, ...props }) { fullScreen: true, overflow: ( open original ) diff --git a/components/item.js b/components/item.js index ce12a674..7e65f558 100644 --- a/components/item.js +++ b/components/item.js @@ -74,10 +74,9 @@ export default function Item ({ item, rank, belowTitle, right, full, children, s {item.url && !image && <> - {/* eslint-disable-next-line */} = NOFOLLOW_LIMIT ? null : 'nofollow'} + rel={`noreferrer ${item.sats + item.boost >= NOFOLLOW_LIMIT ? '' : 'nofollow'} noopener`} > {item.url.replace(/(^https?:|^)\/\//, '')} diff --git a/lib/constants.js b/lib/constants.js index cc1eeb7d..c7db9b07 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -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