Skip to content
Snippets Groups Projects
Commit 1586c3d3 authored by Tim's avatar Tim
Browse files

Add trending-30day page for 2nd payouts

parent 69a8e922
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,8 @@ export default function resolveRoute(path)
if (match) {
return {page: 'Post', params: match.slice(1)};
}
match = path.match(/^\/(best|updated|hot|votes|responses|trending|cashout|created|recent|active)\/?$/)
|| path.match(/^\/(best|trending|hot|updated|votes|responses|cashout|created|recent|active)\/([\w\d-]+)\/?$/);
match = path.match(/^\/(best|updated|hot|votes|responses|trending|trending30|cashout|created|recent|active)\/?$/)
|| path.match(/^\/(best|updated|hot|votes|responses|trending|trending30|cashout|created|recent|active)\/([\w\d-]+)\/?$/);
if (match) {
return {page: 'PostsIndex', params: match.slice(1)};
}
......
......@@ -52,6 +52,7 @@ class Header extends React.Component {
const sort_orders = {
hot: 'hot',
trending: 'trending',
trending30: 'trending (30 day)',
cashout: 'payout time',
created: 'new',
active: 'active',
......
......@@ -61,6 +61,13 @@ export function* fetchData(action) {
limit: constants.FETCH_DATA_BATCH_SIZE,
start_author: author,
start_permlink: permlink}];
} else if (order === 'trending30') {
call_name = 'get_discussions_by_trending30';
args = [
{ tag: category,
limit: constants.FETCH_DATA_BATCH_SIZE,
start_author: author,
start_permlink: permlink}];
} else if( order === 'active' ) {
call_name = 'get_discussions_by_active';
args = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment