diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 506f3405..d95f9deb 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -857,7 +857,7 @@ export const SELECT = function newTimedOrderByWeightedSats (num) { return ` ORDER BY (POWER("Item"."weightedVotes", 1.2)/POWER(EXTRACT(EPOCH FROM ($${num} - "Item".created_at))/3600+2, 1.3) + - GREATEST("Item".boost-1000+5, 0)/POWER(EXTRACT(EPOCH FROM ($${num} - "Item".created_at))/3600+2, 4)) DESC NULLS LAST, "Item".id DESC` + ("Item".boost/${BOOST_MIN}::float)/POWER(EXTRACT(EPOCH FROM ($${num} - "Item".created_at))/3600+2, 2.6)) DESC NULLS LAST, "Item".id DESC` } const TOP_ORDER_BY_SATS = 'ORDER BY "Item"."weightedVotes" DESC NULLS LAST, "Item".id DESC' diff --git a/components/adv-post-form.js b/components/adv-post-form.js index 10bb272b..f2c91568 100644 --- a/components/adv-post-form.js +++ b/components/adv-post-form.js @@ -4,6 +4,7 @@ import { Input } from './form' import { InputGroup } from 'react-bootstrap' import { BOOST_MIN } from '../lib/constants' import { NAME_QUERY } from '../fragments/users' +import Info from './info' export function AdvPostSchema (client) { return { @@ -34,7 +35,27 @@ export default function AdvPostForm () { body={ <> boost>} + label={ +