more expensive boost + explainer
This commit is contained in:
parent
cb313429d5
commit
5ac894baed
|
@ -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'
|
||||
|
|
|
@ -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={
|
||||
<>
|
||||
<Input
|
||||
label={<>boost</>}
|
||||
label={
|
||||
<div className='d-flex align-items-center'>boost
|
||||
<Info>
|
||||
<ol className='font-weight-bold'>
|
||||
<li>Boost ranks posts higher temporarily based on the amount</li>
|
||||
<li>The minimum boost is {BOOST_MIN} sats</li>
|
||||
<li>Each {BOOST_MIN} sats of boost is equivalent to one trusted upvote
|
||||
<ul>
|
||||
<li>e.g. {BOOST_MIN * 2} sats is like 2 votes</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>The decay of boost "votes" increases at 2x the rate of organic votes
|
||||
<ul>
|
||||
<li>i.e. boost votes fall out of ranking faster</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>100% of sats from boost are given back to top users as rewards</li>
|
||||
</ol>
|
||||
</Info>
|
||||
</div>
|
||||
}
|
||||
name='boost'
|
||||
hint={<span className='text-muted'>ranks posts higher temporarily based on the amount</span>}
|
||||
append={<InputGroup.Text className='text-monospace'>sats</InputGroup.Text>}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export const NOFOLLOW_LIMIT = 100
|
||||
export const BOOST_MIN = 1000
|
||||
export const NOFOLLOW_LIMIT = 1000
|
||||
export const BOOST_MIN = 5000
|
||||
export const UPLOAD_SIZE_MAX = 2 * 1024 * 1024
|
||||
export const IMAGE_PIXELS_MAX = 35000000
|
||||
export const UPLOAD_TYPES_ALLOW = [
|
||||
|
|
Loading…
Reference in New Issue